...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
#include <boost/fiber/fiber.hpp> namespace boost { namespace fibers { class id { public: constexpr id() noexcept; bool operator==( id const&) const noexcept; bool operator!=( id const&) const noexcept; bool operator<( id const&) const noexcept; bool operator>( id const&) const noexcept; bool operator<=( id const&) const noexcept; bool operator>=( id const&) const noexcept; template< typename charT, class traitsT > friend std::basic_ostream< charT, traitsT > & operator<<( std::basic_ostream< charT, traitsT > &, id const&); }; }}
constexpr id() noexcept;
Represents an instance of not-a-fiber.
Nothing.
operator==
()
bool operator==( id const& other) const noexcept;
true
if *this
and other
represent
the same fiber, or both represent not-a-fiber,
false
otherwise.
Nothing.
operator!=
()
bool operator!=( id const& other) const noexcept;
! (other == * this)
Nothing.
operator<
()
bool operator<( id const& other) const noexcept;
true
if *this != other
is true and the implementation-defined total order of fiber::id
values places *this
before other
,
false otherwise.
Nothing.
operator>
()
bool operator>( id const& other) const noexcept;
other <
* this
Nothing.
operator<=
()
bool operator<=( id const& other) const noexcept;
! (other <
* this)
Nothing.
operator>=
()
bool operator>=( id const& other) const noexcept;
! (*
this <
other)
Nothing.
template< typename charT, class traitsT > std::basic_ostream< charT, traitsT > & operator<<( std::basic_ostream< charT, traitsT > & os, id const& other);
Writes the representation of other
to stream os
. The representation
is unspecified.
os