libER 0.1.4.2
ELDEN RING API library
Loading...
Searching...
No Matches
from_string.hpp
Go to the documentation of this file.
1
8#pragma once
9
10#if defined(_ITERATOR_DEBUG_LEVEL) && _ITERATOR_DEBUG_LEVEL > 0
11#error "_ITERATOR_DEBUG_LEVEL" must be defined as "0" for STL containers to be compatible with the ELDEN RING ABI.
12#endif
13
15#include <string>
16
17namespace from {
22template <typename CharT, typename Traits = std::char_traits<CharT>>
23using basic_string = std::basic_string<CharT, Traits, from::allocator<CharT>>;
24
33
42
43// Compile time size checks - failing these means binary incompatibility
44static_assert(sizeof(from::string) == 40, "ELDEN RING ABI requirement");
45} // namespace from
ELDEN RING allocation interface and from::allocator.
std::basic_string< CharT, Traits, from::allocator< CharT > > basic_string
std::basic_string with from::allocator.
Definition from_string.hpp:23
from::basic_string< char, std::char_traits< char > > string
std::string with from::allocator.
Definition from_string.hpp:32
from::basic_string< wchar_t, std::char_traits< wchar_t > > wstring
std::wstring with from::allocator.
Definition from_string.hpp:41