Initial merge-commit of the OIC code. Should successfully do discovery for single...
[platform/upstream/iotivity.git] / csdk / controller / core / include / core / UUIDLess.hpp
1 //******************************************************************
2 //
3 // Copyright 2014 Intel Corporation All Rights Reserved.
4 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
5
6 #ifndef UUIDLESS_HPP_
7 #define UUIDLESS_HPP_
8
9 // ============================================================================
10 // Includes
11 // ============================================================================
12
13 #include <cstring>
14 #include "Core.h"
15
16         // ============================================================================
17         // Namespace
18         // ============================================================================
19         namespace Intel {
20         namespace CCFL {
21
22   class UUIDLess
23   {
24   public:
25      bool operator()(const UUID_t &uuid1, const UUID_t &uuid2) const
26      {
27         return memcmp(&uuid1, &uuid2, sizeof(uuid1))<0;
28      }
29   };
30
31 }
32 }
33
34
35 #endif /* UUIDLESS_HPP_ */