Samchon Framework for CPP
1.0.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
Set.hpp
1
#pragma once
2
3
#include <set>
4
5
namespace
samchon
6
{
7
template
<
typename
K,
typename
O = std::less<K>,
typename
Alloc = std::allocator<K>>
8
class
Set
9
:
public
std::set < K, O, Alloc >
10
{
11
private
:
12
typedef
std::set<K, O, Alloc> super;
13
14
public
:
15
using
super::set;
16
17
/*explicit Set(const key_compare& comp = key_compare(), const allocator_type& alloc = allocator_type())
18
: super(comp, alloc) {};
19
explicit Set(const allocator_type& alloc)
20
: super(alloc) {};
21
22
template <class InputIterator>
23
Set(InputIterator first, InputIterator last, const key_compare& comp = key_compare(), const allocator_type& = allocator_type())
24
: super(first, last, comp, allocator_type) {};
25
26
Set(const set& x)
27
: super(x) {};
28
Set(const set& x, const allocator_type& alloc)
29
: super(x, alloc) {};
30
Set(set&& x)
31
: super(std::move(x)) {};
32
Set(set&& x, const allocator_type& alloc)
33
: super(std::move(x), alloc) {};
34
Set(std::initializer_list<value_type> il, const key_compare& comp = key_compare(), const allocator_type& alloc = allocator_type())
35
: super(il, comp, alloc) {};*/
36
37
auto
has(
const
K &key)
const
->
bool
38
{
39
return
!(find(key) == end());
40
};
41
};
42
};
samchon
Definition:
ByteArray.hpp:6
cpp
samchon
Set.hpp
Generated by
1.8.11