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

17 lines
365 B
C++
Raw Blame History

#ifndef SPROUT_CSTRING_STRLEN_HPP
#define SPROUT_CSTRING_STRLEN_HPP
#include <cstddef>
#include <sprout/config.hpp>
namespace sprout {
// 7.21.6.3 strlen ŠÖ<C5A0>
inline SPROUT_CONSTEXPR std::size_t
strlen(char const* s) {
return !*s ? 0
: 1 + sprout::strlen(s + 1)
;
}
} // namespace sprout
#endif // #ifndef SPROUT_CSTRING_STRLEN_HPP