File: vcl_set.txx

package info (click to toggle)
insighttoolkit 3.6.0-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 94,956 kB
  • ctags: 74,981
  • sloc: cpp: 355,621; ansic: 195,070; fortran: 28,713; python: 3,802; tcl: 1,996; sh: 1,175; java: 583; makefile: 415; csh: 184; perl: 175
file content (31 lines) | stat: -rw-r--r-- 1,041 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef vcl_gcc_295_set_txx_
#define vcl_gcc_295_set_txx_

#include <vcl_set.h>
#include <vcl_cstddef.h> // for vcl_size_t

// Both
//   set<Key, Compare>
// and
//   multiset<Key, Compare>
// use
//   _Rb_tree<Key,
//            Key,
//            _Identity<Key>,
//            Compare,
//            allocator<Key> >
// as the underlying implementation.

#define VCL_SET_IMPL(Key, Compare) \
_Rb_tree<Key, Key, _Identity<Key >, Compare, allocator<Key > >

#undef VCL_SET_INSTANTIATE
#define VCL_SET_INSTANTIATE(T, Compare) \
template class vcl_set<T, Compare >; \
template void distance (vcl_set<T, Compare >::iterator, vcl_set<T, Compare >::iterator, unsigned &); \
template pair<VCL_SET_IMPL(T, Compare)::iterator, bool > VCL_SET_IMPL(T, Compare)::insert_unique(T const&); \
template VCL_SET_IMPL(T, Compare)::const_iterator VCL_SET_IMPL(T, Compare)::find(T const&) const; \
template void VCL_SET_IMPL(T, Compare)::_M_erase(_Rb_tree_node*); \
template vcl_size_t VCL_SET_IMPL(T, Compare)::erase(T const&)

#endif // vcl_gcc_295_set_txx_