Metall  v0.29
A persistent memory allocator for data-centric analytics
string.hpp
Go to the documentation of this file.
1 // Copyright 2022 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_JSON_STRING_HPP
7 #define METALL_JSON_STRING_HPP
8 
9 #include <cstring>
10 
11 #include <metall/json/json_fwd.hpp>
12 
13 namespace metall::json::jsndtl {
14 
15 template <typename char_t, typename traits, typename allocator,
16  typename other_string_type>
19  const other_string_type &other_string) noexcept {
20  return std::strcmp(string.c_str(), other_string.c_str()) == 0;
21 }
22 
23 } // namespace metall::json::jsndtl
24 
25 #endif // METALL_JSON_STRING_HPP
Definition: array.hpp:23
bool general_string_equal(const basic_string< char_t, traits, allocator > &string, const other_string_type &other_string) noexcept
Definition: string.hpp:17
metall::container::basic_string< char_t, traits, allocator_type > basic_string
JSON basic string type.
Definition: json_fwd.hpp:44