Sprout/sprout/cwchar/wcslen.hpp
bolero-MURAKAMI 73cdad232b fix container_traits for pointer type
fix to_string for longer string
2012-12-21 22:35:48 +09:00

16 lines
338 B
C++

#ifndef SPROUT_CWCHAR_WCSLEN_HPP
#define SPROUT_CWCHAR_WCSLEN_HPP
#include <cstddef>
#include <sprout/config.hpp>
namespace sprout {
inline SPROUT_CONSTEXPR std::size_t
wcslen(wchar_t const* s) {
return !*s ? 0
: 1 + sprout::wcslen(s + 1)
;
}
} // namespace sprout
#endif // #ifndef SPROUT_CWCHAR_WCSLEN_HPP