Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
instance.cpp
Go to the documentation of this file.
1
29#define _RWSTD_LIB_SRC
30
31#define _RWSTD_INSTANTIATE_TEMPLATES 1
32#define _RWSTD_INSTANTIATE_STATIC_MUTEX 1
33#define _RWSTD_INSTANTIATE_INT 1
34
35#include <string>
36#include <rw/_mutex.h>
37
38#ifdef _RWSTD_NO_COLLAPSE_TEMPLATE_STATICS
39
41
42#ifndef _RWSTD_NO_WCHAR_T
43
44typedef _STD::char_traits<wchar_t> Traits;
45typedef _STD::allocator<wchar_t> Allocator;
46
47typedef __string_ref<wchar_t, Traits, Allocator> StringRef;
48
49#else // if defined (_RWSTD_NO_WCHAR_T)
50
51typedef _STD::char_traits<char> Traits;
52typedef _STD::allocator<char> Allocator;
53
54typedef __string_ref<char, Traits, Allocator> StringRef;
55
56#endif // _RWSTD_NO_WCHAR_T
57
58// FIXME: this won't work at all for other (non-char) specializations
59// try to allocate enough space for std::wstring plus some overhead
60_RWSTD_EXPORT unsigned long
61__nullref [4 * sizeof (StringRef) / sizeof (long) + 2];
62
63} // namespace __rw
64
65#endif // _RWSTD_NO_COLLAPSE_TEMPLATE_STATICS
#define Allocator
Definition 17.names.cpp:440
#define Traits
Definition 17.names.cpp:556
#define _RWSTD_EXPORT
Definition _defs.h:485
#define _RWSTD_NAMESPACE(name)
Definition _defs.h:567