mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
add sprout::string_ref
support conversion array-like container iterator to pointer
This commit is contained in:
parent
fa1d769bdf
commit
1ef8a6a63b
64 changed files with 1570 additions and 254 deletions
|
@ -1,7 +1,6 @@
|
|||
#ifndef SPROUT_LIBS_STRING_TEST_STRING_CPP
|
||||
#define SPROUT_LIBS_STRING_TEST_STRING_CPP
|
||||
|
||||
#include <cstring>
|
||||
#include <sstream>
|
||||
#include <type_traits>
|
||||
#include <sprout/string.hpp>
|
||||
|
@ -48,7 +47,7 @@ namespace testspr {
|
|||
|
||||
// empty
|
||||
TESTSPR_BOTH_ASSERT(!str1.empty());
|
||||
TESTSPR_BOTH_ASSERT((string_t<0>::type().empty()));
|
||||
TESTSPR_BOTH_ASSERT((sprout::string_t<0>::type().empty()));
|
||||
|
||||
// max_size
|
||||
TESTSPR_BOTH_ASSERT(str1.max_size() == 10);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue