aGrUM  0.16.0
utils_misc.cpp
Go to the documentation of this file.
1 
30 #include <agrum/core/utils_misc.h>
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-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
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-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25