Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Mutable flags sequence requirements

A mutable flags sequence is a range into which an operation, such as the receive_multiple operation of a datagram socket, writes the flags associated with each received datagram.

A type X meets the MutableFlagsSequence requirements if it satisfies the requirements of Destructible (C++Std [destructible]) and CopyConstructible (C++Std [copyconstructible]), and is_shallow_mutable_sequence<X>::value is true, as well as the additional requirements listed below.

In the table below, x denotes a value of type X, or of type R if X is std::reference_wrapper<R>, i denotes an iterator in the range [x.begin(),x.end()), e denotes *i, or (*i).get() if *i is a std::reference_wrapper, and v denotes a value of type socket_base::message_flags.

Table 29. MutableFlagsSequence requirements

expression

return type

assertion/note
pre/post-condition

x.begin()
x.end()

A type meeting the requirements for forward iterators (C++Std [forward.iterators]).

[x.begin(),x.end()) is a valid range. The range may be traversed more than once.

e = v

Stores the flags associated with the corresponding datagram.



PrevUpHomeNext