#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;
- Effects:
.
- Throws:
Ничего.
bool operator==( id const& other) const noexcept;
- Returns:
<true>если<*this>и<other>представляют одно и то же волокно, или оба представляютне-волокно,<false>иначе.
- Throws:
Ничего.
bool operator!=( id const& other) const noexcept;
- Returns:
<! (other == * this)>
- Throws:
Ничего.
bool operator<( id const& other) const noexcept;
- Returns:
<true>, если<*this!=other>истинно и заданный реализацией полный порядок<fiber::id>значений помещает<*this>перед<other>, ложно в противном случае.
- Throws:
Ничего.
bool operator>( id const& other) const noexcept;
- Returns:
<other<
*this>
- Throws:
Ничего.
bool operator<=( id const& other) const noexcept;
- Returns:
<!(other<
*this)>
- Throws:
Ничего.
bool operator>=( id const& other) const noexcept;
- Returns:
<!(*
this<
other)>
- Throws:
Ничего.
template< typename charT, class traitsT >
std::basic_ostream< charT, traitsT > &
operator<<( std::basic_ostream< charT, traitsT > & os, id const& other);
- Efects:
Пишет представление<other>для потока<os>. Представление не уточняется.
- Returns:
<os>