William A. Kennington III | f2ddf51 | 2022-09-20 15:36:44 -0700 | [diff] [blame] | 1 | #include <stdplus/zstring.hpp> |
| 2 | |
| 3 | namespace stdplus |
| 4 | { |
| 5 | |
William A. Kennington III | aaa8e0d | 2022-09-24 22:36:31 -0700 | [diff] [blame] | 6 | #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 III | f2ddf51 | 2022-09-20 15:36:44 -0700 | [diff] [blame] | 13 | #define zstring_instance(char_t) \ |
William A. Kennington III | aaa8e0d | 2022-09-24 22:36:31 -0700 | [diff] [blame] | 14 | 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 III | f2ddf51 | 2022-09-20 15:36:44 -0700 | [diff] [blame] | 17 | template class basic_zstring<char_t>; \ |
| 18 | template class basic_zstring<const char_t> |
| 19 | zstring_instance(char); |
| 20 | zstring_instance(char8_t); |
| 21 | zstring_instance(char16_t); |
| 22 | zstring_instance(char32_t); |
| 23 | zstring_instance(wchar_t); |
| 24 | #undef zstring_instance |
William A. Kennington III | aaa8e0d | 2022-09-24 22:36:31 -0700 | [diff] [blame] | 25 | #undef zstring_debug_instance |
William A. Kennington III | f2ddf51 | 2022-09-20 15:36:44 -0700 | [diff] [blame] | 26 | |
| 27 | } // namespace stdplus |