ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#include "utils/Array.hpp"
#include "utils/get.hpp"
#include "utils/type_traits.hpp"
#include <cstddef>
#include <type_traits>
#include <utility>
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. | |