Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
basic_static_string::assign (5 of 12 overloads)

Replace the contents.

Synopsis
template<
    std::size_t M>
BOOST_STATIC_STRING_CPP14_CONSTEXPR basic_static_string&
assign(
    const basic_static_string< M, CharT, Traits >& s,
    size_type pos,
    size_type count = npos);
Description

Replace the contents with a copy of count characters starting at npos from s.

Exceptions

Type

Thrown On

std::length_error

if count > max_size()

Return Value

*this


PrevUpHomeNext