Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions include/asiochan/channel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ namespace asiochan
return *shared_state_;
}

[[nodiscard]] auto shared_state() const noexcept -> const shared_state_type&
{
return *shared_state_;
}

[[nodiscard]] friend auto operator==(
channel_base const& lhs,
channel_base const& rhs) noexcept -> bool
Expand Down