magic_enum::bitwise_operators Namespace Reference

Functions

template<typename E, detail::enable_if_t< E, int > = 0>
constexpr E operator& (E lhs, E rhs) noexcept
 
template<typename E, detail::enable_if_t< E, int > = 0>
constexpr E & operator&= (E &lhs, E rhs) noexcept
 
template<typename E, detail::enable_if_t< E, int > = 0>
constexpr E operator^ (E lhs, E rhs) noexcept
 
template<typename E, detail::enable_if_t< E, int > = 0>
constexpr E & operator^= (E &lhs, E rhs) noexcept
 
template<typename E, detail::enable_if_t< E, int > = 0>
constexpr E operator| (E lhs, E rhs) noexcept
 
template<typename E, detail::enable_if_t< E, int > = 0>
constexpr E & operator|= (E &lhs, E rhs) noexcept
 
template<typename E, detail::enable_if_t< E, int > = 0>
constexpr E operator~ (E rhs) noexcept
 

Function Documentation

◆ operator&()

template<typename E, detail::enable_if_t< E, int > = 0>
E operator& ( E lhs,
E rhs )
constexprnoexcept

Definition at line 1396 of file magic_enum.hpp.

◆ operator&=()

template<typename E, detail::enable_if_t< E, int > = 0>
E & operator&= ( E & lhs,
E rhs )
constexprnoexcept

Definition at line 1411 of file magic_enum.hpp.

◆ operator^()

template<typename E, detail::enable_if_t< E, int > = 0>
E operator^ ( E lhs,
E rhs )
constexprnoexcept

Definition at line 1401 of file magic_enum.hpp.

◆ operator^=()

template<typename E, detail::enable_if_t< E, int > = 0>
E & operator^= ( E & lhs,
E rhs )
constexprnoexcept

Definition at line 1416 of file magic_enum.hpp.

◆ operator|()

template<typename E, detail::enable_if_t< E, int > = 0>
E operator| ( E lhs,
E rhs )
constexprnoexcept

Definition at line 1391 of file magic_enum.hpp.

◆ operator|=()

template<typename E, detail::enable_if_t< E, int > = 0>
E & operator|= ( E & lhs,
E rhs )
constexprnoexcept

Definition at line 1406 of file magic_enum.hpp.

◆ operator~()

template<typename E, detail::enable_if_t< E, int > = 0>
E operator~ ( E rhs)
constexprnoexcept

Definition at line 1386 of file magic_enum.hpp.