Metall  v0.29
A persistent memory allocator for data-centric analytics
string.hpp
Go to the documentation of this file.
1 // Copyright 2019 Lawrence Livermore National Security, LLC and other Metall
2 // Project Developers. See the top-level COPYRIGHT file for details.
3 //
4 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
5 
6 #ifndef METALL_CONTAINER_STRING_HPP
7 #define METALL_CONTAINER_STRING_HPP
8 
9 #include <string>
10 #include <boost/container/string.hpp>
11 
12 #include <metall/metall.hpp>
13 
14 namespace metall::container {
15 
17 template <class CharT, class Traits = std::char_traits<CharT>,
18  class Allocator = metall::manager::allocator_type<CharT>>
19 using basic_string = boost::container::basic_string<CharT, Traits, Allocator>;
20 
23 using string = basic_string<char>;
24 
28 
29 } // namespace metall::container
30 
31 #endif // METALL_CONTAINER_STRING_HPP
Namespace for Metall container.
boost::container::basic_string< CharT, Traits, Allocator > basic_string
A string container that uses Metall as its default allocator.
Definition: string.hpp:19
basic_string< wchar_t > wstring
A string container that uses wchar_t as its character type and Metall as its default allocator.
Definition: string.hpp:27