aGrUM  0.18.1
a C++ library for (probabilistic) graphical models
utils_misc.cpp
Go to the documentation of this file.
1 
31 
32 namespace std {
33  std::ostream& operator<<(std::ostream& os, const std::tuple<>&) {
34  return os << "()";
35  }
36 } // namespace std
37 
38 namespace gum {
39 
40  bool Memcmp(const void* const in_, const void* const out_, unsigned long size) {
41  unsigned char* in = (unsigned char*)in_;
42  unsigned char* out = (unsigned char*)out_;
43 
44  for (unsigned long i = 0; i < size; ++i)
45  if (*(in++) != *(out++)) return false;
46 
47  return true;
48  }
49 
50  void atexit__() {
51 #ifdef GUM_DEBUG_MODE
53 #endif
54  }
55 
56 } /* namespace gum */
Copyright 2005-2020 Pierre-Henri WUILLEMIN() & Christophe GONZALES() info_at_agrum_dot_org.
STL namespace.
Copyright 2005-2020 Pierre-Henri WUILLEMIN() & Christophe GONZALES() info_at_agrum_dot_org.
Definition: agrum.h:25
bool Memcmp(const void *const in_, const void *const out_, unsigned long size)
Cross-platform replacement for memcmp.
Definition: utils_misc.cpp:40
void atexit__()
Used for debug purpose.
Definition: utils_misc.cpp:50