tesseract  5.0.0-alpha-619-ge9db
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 227 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 228 of file bbgrid.h.

228  {
229  return reinterpret_cast<uintptr_t>(ptr) / sizeof(T);
230  }

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