string_view_fwd.hpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. Copyright (c) Marshall Clow 2012-2012.
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. For more information, see http://www.boost.org
  6. Based on the StringRef implementation in LLVM (http://llvm.org) and
  7. N3422 by Jeffrey Yasskin
  8. http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3442.html
  9. Updated July 2015 to reflect the Library Fundamentals TS
  10. http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4480.html
  11. */
  12. #ifndef BOOST_STRING_VIEW_FWD_HPP
  13. #define BOOST_STRING_VIEW_FWD_HPP
  14. #include <boost/config.hpp>
  15. #include <string>
  16. namespace boost {
  17. template<typename charT, typename traits = std::char_traits<charT> > class basic_string_view;
  18. typedef basic_string_view<char, std::char_traits<char> > string_view;
  19. typedef basic_string_view<wchar_t, std::char_traits<wchar_t> > wstring_view;
  20. #ifndef BOOST_NO_CXX11_CHAR16_T
  21. typedef basic_string_view<char16_t, std::char_traits<char16_t> > u16string_view;
  22. #endif
  23. #ifndef BOOST_NO_CXX11_CHAR32_T
  24. typedef basic_string_view<char32_t, std::char_traits<char32_t> > u32string_view;
  25. #endif
  26. }
  27. #endif