tesseract  4.0.0-1-g2a2b
tesseract::PtrHash< T > Struct Template Reference

#include <bbgrid.h>

Public Member Functions

size_t operator() (const T *ptr) const
 

Detailed Description

template<typename T>
struct tesseract::PtrHash< T >

Definition at line 228 of file bbgrid.h.

Member Function Documentation

◆ operator()()

template<typename T >
size_t tesseract::PtrHash< T >::operator() ( const T *  ptr) const
inline

Definition at line 229 of file bbgrid.h.

229  {
230  return reinterpret_cast<size_t>(ptr) / sizeof(T);
231  }

The documentation for this struct was generated from the following file: