blob: ccddc836614797566ab592e12e8ee176db6d788e [file] [log] [blame]
William A. Kennington IIIf2ddf512022-09-20 15:36:44 -07001#include <stdplus/zstring.hpp>
2
3namespace stdplus
4{
5
William A. Kennington IIIaaa8e0d2022-09-24 22:36:31 -07006#ifdef NDEBUG
7#define zstring_debug_instance(char_t)
8#else
9#define zstring_debug_instance(char_t) \
10 template std::size_t detail::zstring_validate<char_t>( \
11 const char_t* str, std::size_t min, std::size_t max)
12#endif
William A. Kennington IIIf2ddf512022-09-20 15:36:44 -070013#define zstring_instance(char_t) \
William A. Kennington IIIaaa8e0d2022-09-24 22:36:31 -070014 template std::ptrdiff_t detail::zstring_find_term<char_t>( \
15 const char_t* str, std::size_t min, std::size_t max) noexcept; \
16 zstring_debug_instance(char_t); \
William A. Kennington IIIf2ddf512022-09-20 15:36:44 -070017 template class basic_zstring<char_t>; \
18 template class basic_zstring<const char_t>
19zstring_instance(char);
20zstring_instance(char8_t);
21zstring_instance(char16_t);
22zstring_instance(char32_t);
23zstring_instance(wchar_t);
24#undef zstring_instance
William A. Kennington IIIaaa8e0d2022-09-24 22:36:31 -070025#undef zstring_debug_instance
William A. Kennington IIIf2ddf512022-09-20 15:36:44 -070026
27} // namespace stdplus