Added STL string to bx::StringView conversion.

This commit is contained in:
Branimir Karadžić
2018-02-20 11:14:17 -08:00
parent cfc6b32d10
commit 9987d5cc5a
3 changed files with 33 additions and 6 deletions

View File

@@ -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();