aGrUM  0.17.2
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 () et Christophe GONZALES () info_at_agrum_dot_org.
STL namespace.
void __atexit()
Used for debug purpose.
Definition: utils_misc.cpp:50
bool Memcmp(const void *const _in, const void *const _out, unsigned long size)
Cross-platform replacement for memcmp.
Definition: utils_misc.cpp:40
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Definition: agrum.h:25