mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
Added STL string to bx::StringView conversion.
This commit is contained in:
@@ -41,6 +41,10 @@ namespace bx
|
||||
///
|
||||
StringView(const char* _ptr, const char* _term);
|
||||
|
||||
///
|
||||
template<typename Ty>
|
||||
explicit StringView(const Ty& _container);
|
||||
|
||||
///
|
||||
void set(const char* _ptr, int32_t _len = INT32_MAX);
|
||||
|
||||
@@ -50,6 +54,10 @@ namespace bx
|
||||
///
|
||||
void set(const StringView& _str);
|
||||
|
||||
///
|
||||
template<typename Ty>
|
||||
void set(const Ty& _container);
|
||||
|
||||
///
|
||||
void clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user