Table Of Contents

Previous topic

length

Next topic

resize

This Page

max_size

Interface

SPROUT_CONSTEXPR size_type max_size() const SPROUT_NOEXCEPT;

Returns

The number of elements contained in the string.

Examples

#include <sprout/string.hpp>
using namespace sprout;

SPROUT_STATIC_CONSTEXPR auto input = string<8>("homuhomu");
static_assert(input.max_size() == 8, "input max size is 8.");

Complexity

Recursive function invocations in O(1) (constant) depth.