This namespace documents compatibility features of ALib Boxing and the standard C++ class library found in namespace std
.
void alib::boxing::compatibility::std::BootstrapStdStringBoxing |
( |
| ) |
|
|
inline |
Initializes ALib Boxing in respect to std::string
-types.
This method is not automatically invoked with function Bootstrap, because support for boxing std::string
-types is optional and provided with the inclusion of header ALib.Compatibility.StdBoxtraits.H.
In general, boxing of std::string
-types works well without the one-time invocation of this function at the bootstrap of a process. This method registers box-function FAppend for std::string
-types types when custom boxing is bypassed by wrapping the types in std::reference_wrapper<T>
. The function is implemented with the help of FAppend::WrappedAppendable for wrapped std::string
-types, each for character types nchar and wchar.
- Note
- If invoked after bootstrap and modules ALib Threads and ALib Monomem are included in the ALib Build, mutex GLOBAL_ALLOCATOR_LOCK has to be locked before an invocation. Bootstrapping may look as follows:
-
(Note, that the curly brackets create a compound that releases the automatic owner instance after the call.)
Alternatively, bootstrapping can be performed until BootstrapPhases::PrepareConfig and then this function can be invoked. In this case, no locking is necessary.
Definition at line 179 of file ALib.Compatibility.StdBoxtraits.H.