While eastl containers are interoperable with std algorithms thanks to iterators, strings are typically not handled through iterators.
Converting an eastl string to an std string is problematic and string_views are a better tool for this.
This commit adds automatic conversion between std::string_view and eastl::string_view.
The feature (and corresponding unit test) is guarded by EASTL_STRING_VIEW_STD_CONVERSION_ENABLED.
Let me know where to add EASTL_STRING_VIEW_STD_CONVERSION_ENABLED such that it is correctly picked up by testing facilities.
While eastl containers are interoperable with std algorithms thanks to iterators, strings are typically not handled through iterators. Converting an eastl string to an std string is problematic and string_views are a better tool for this.
This commit adds automatic conversion between
std::string_view
andeastl::string_view
.The feature (and corresponding unit test) is guarded by
EASTL_STRING_VIEW_STD_CONVERSION_ENABLED
. Let me know where to addEASTL_STRING_VIEW_STD_CONVERSION_ENABLED
such that it is correctly picked up by testing facilities.