Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
basic_static_string::insert (12 of 15 overloads)

Insert characters from an initializer list.

Synopsis
BOOST_STATIC_STRING_CPP14_CONSTEXPR iterator
insert(
    const_iterator pos,
    std::initializer_list< value_type > ilist);
Description

Inserts characters from ilist before pos.

Precondition

pos shall be valid within [data(), data() + size()]

Exception Safety

Strong guarantee.

Remarks

All references, pointers, or iterators referring to contained elements are invalidated. Any past-the-end iterators are also invalidated.

Return Value

An iterator which refers to the first inserted character or pos if no characters were inserted

Parameters

Name

Description

pos

The position to insert at.

ilist

The initializer list from which to insert.

Exceptions

Type

Thrown On

std::length_error

size() + ilist.size() > max_size()


PrevUpHomeNext