string_ref_fwd.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. */
  10. #ifndef BOOST_STRING_REF_FWD_HPP
  11. #define BOOST_STRING_REF_FWD_HPP
  12. #include <boost/config.hpp>
  13. #include <string>
  14. namespace boost {
  15. template<typename charT, typename traits = std::char_traits<charT> > class basic_string_ref;
  16. typedef basic_string_ref<char, std::char_traits<char> > string_ref;
  17. typedef basic_string_ref<wchar_t, std::char_traits<wchar_t> > wstring_ref;
  18. #ifndef BOOST_NO_CXX11_CHAR16_T
  19. typedef basic_string_ref<char16_t, std::char_traits<char16_t> > u16string_ref;
  20. #endif
  21. #ifndef BOOST_NO_CXX11_CHAR32_T
  22. typedef basic_string_ref<char32_t, std::char_traits<char32_t> > u32string_ref;
  23. #endif
  24. }
  25. #endif