Use beast::string_view alias

This commit is contained in:
Vinnie Falco committed 2017-05-09 07:23:09 -07:00
1 parent 771c5cade5
commit 1c9067b1da
36 files changed
+319 -288

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
//
// Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BEAST_STRING_VIEW_HPP
#define BEAST_STRING_VIEW_HPP
#include <boost/utility/string_ref.hpp>
namespace beast {
/// The type of string_view used by the library
using string_view = boost::string_ref;
/// The type of basic_string_view used by the library
template<class CharT, class Traits>
using basic_string_view =
boost::basic_string_ref<CharT, Traits>;
} // beast
#endif