Thea
Set.hpp
1 //============================================================================
2 //
3 // This file is part of the Thea toolkit.
4 //
5 // This software is distributed under the BSD license, as detailed in the
6 // accompanying LICENSE.txt file. Portions are derived from other works:
7 // their respective licenses and copyright information are reproduced in
8 // LICENSE.txt and/or in the relevant source files.
9 //
10 // Author: Siddhartha Chaudhuri
11 // First version: 2011
12 //
13 //============================================================================
14 
15 #ifndef __Thea_Set_hpp__
16 #define __Thea_Set_hpp__
17 
18 #include "Platform.hpp"
19 #include <set>
20 
21 namespace Thea {
22 
24 template < typename T,
25  typename Compare = std::less<T>,
26  typename Alloc = std::allocator<T>
27  > using Set = std::set<T, Compare, Alloc>;
28 
30 template < typename T,
31  typename Compare = std::less<T>,
32  typename Alloc = std::allocator<T>
33  > using MultiSet = std::multiset<T, Compare, Alloc>;
34 
35 } // namespace Thea
36 
37 #endif
Root namespace for the Thea library.
std::set< T, Compare, Alloc > Set
Set of objects.
Definition: Set.hpp:27
std::multiset< T, Compare, Alloc > MultiSet
Set of objects, with possible duplication.
Definition: Set.hpp:33
This file must be included in every file in the project, before any other include.