1 // Copyright Arvid Norberg 2006-2013. Use, modification and distribution is
2 // subject to the Boost Software License, Version 1.0. (See accompanying
3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4 
5 #ifndef BYTES_HPP
6 #define BYTES_HPP
7 
8 #include <string>
9 
10 struct bytes
11 {
bytesbytes12 	bytes(char const* s, std::size_t len): arr(s, len) {}
bytesbytes13 	bytes(std::string const& s): arr(s) {}
bytesbytes14 	bytes(std::string&& s): arr(std::move(s)) {}
15 	bytes(bytes const&) = default;
16 	bytes(bytes&&) noexcept = default;
17 	bytes& operator=(bytes&&) & noexcept = default;
bytesbytes18 	bytes() {}
19 	std::string arr;
20 };
21 
22 #endif
23