Initial merge-commit of the OIC code. Should successfully do discovery for single...
[platform/upstream/iotivity.git] / csdk / controller / src / remoting / LiteUUIDLess.hpp
1 //******************************************************************
2 //
3 // Copyright 2014 Intel Corporation All Rights Reserved.
4 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
5
6 #ifndef LITEUUIDLESS_HPP_
7 #define LITEUUIDLESS_HPP_
8
9 #include <uuid.h>
10
11 namespace remoting {
12
13   class LiteUUIDLess
14   {
15   public:
16      bool operator()(const UUID_t &uuid1, const UUID_t &uuid2) const
17      {
18         return memcmp(&uuid1, &uuid2, sizeof(uuid1))<0;
19      }
20   };
21
22 }
23
24
25 #endif /* LITEUUIDLESS_HPP_ */