Skip to content

Commit

Permalink
YesNoにoperator==を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
m4saka authored Jan 4, 2025
1 parent 71910c3 commit 11dfe81
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Siv3D/include/Siv3D/YesNo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ namespace s3d
return m_yesNo;
}

[[nodiscard]]
constexpr bool operator ==(const YesNo<Tag>& other) const noexcept
{
return m_yesNo == other.m_yesNo;
}

[[nodiscard]]
constexpr bool operator ==(const Helper& other) const noexcept
{
return m_yesNo == other.yesNo;
}

[[nodiscard]]
constexpr bool getBool() const noexcept
{
Expand Down

0 comments on commit 11dfe81

Please sign in to comment.