File: vcl_list.txx

package info (click to toggle)
insighttoolkit 3.20.1%2Bgit20120521-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 80,652 kB
  • sloc: cpp: 458,133; ansic: 196,223; fortran: 28,000; python: 3,839; tcl: 1,811; sh: 1,184; java: 583; makefile: 430; csh: 220; perl: 193; xml: 20
file content (29 lines) | stat: -rw-r--r-- 1,031 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
#ifndef vcl_egcs_list_txx_
#define vcl_egcs_list_txx_

#include <vcl_list.h>

// MT: Member template

#define VCL_LIST_INSTANTIATE_MT_InputIterator(T, InputIterator) \
template list<T >::list(InputIterator first, InputIterator last); \
template void list<T >::insert(list<T >::iterator, InputIterator, InputIterator)

#undef VCL_LIST_INSTANTIATE
#define VCL_LIST_INSTANTIATE(T) \
template class list<T >;\
VCL_LIST_INSTANTIATE_MT_InputIterator(T, list<T >::iterator);\
VCL_LIST_INSTANTIATE_MT_InputIterator(T, list<T >::const_iterator)

#if 0 // commented out
#ifdef __STL_MEMBER_TEMPLATES
#define INSTANTIATE_LIST_MT_InputIterator(T, InputIterator) \
template list<T >::list(InputIterator first, InputIterator last);\
template void list<T >::insert(list<T >::iterator position, InputIterator first, InputIterator last);\
template void list<T >::range_initialize(InputIterator first, InputIterator last)
#else
#define INSTANTIATE_LIST_MT_InputIterator(T, InputIterator) /* no-op */
#endif
#endif // 0

#endif // vcl_egcs_list_txx_