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_
|