Created
March 28, 2019 17:39
-
-
Save jkoenen/2616e5e44d2bd0b5fa17f641faf02d9f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct StaticStringView | |
| { | |
| inline operator StringView() const; | |
| inline ConstMemoryBlock getMemory() const; | |
| inline const char* getStart() const; | |
| inline size_t getSize() const; | |
| const char* pStart; | |
| size_t size; | |
| }; | |
| constexpr StaticStringView operator "" _s( const char* pString, size_t length ) | |
| { | |
| return StaticStringView{ pString, length }; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment