Loading...
Searching...
No Matches
bit_masking.hpp File Reference
#include <concepts>
#include "terra/kokkos/kokkos_wrapper.hpp"

Go to the source code of this file.

Namespaces

namespace  terra
 
namespace  terra::util
 

Concepts

concept  terra::util::FlagLike
 Concept for types that behave like bitmask flags.
 

Functions

template<FlagLike E>
constexpr E terra::util::operator| (E a, E b)
 
template<FlagLike E>
constexpr E terra::util::operator& (E a, E b)
 
template<FlagLike E>
constexpr bool terra::util::has_flag (E mask_value, E flag) noexcept
 Checks if a bitmask value contains a specific flag.