ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
mask.hpp File Reference
#include "utils/Array.hpp"
#include "utils/get.hpp"
#include "utils/type_traits.hpp"
#include <cstddef>
#include <type_traits>
#include <utility>
+ Include dependency graph for mask.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Utils
 

Functions

template<class T , class Integral >
auto Utils::mask (Integral mask, T t) -> std::enable_if_t< std::is_unsigned_v< Integral > &&(size_in_bits< Integral >::value >=tuple_size< T >::value), T >
 Pick elements of a tuple-like by a bit mask.