MostlyHarmless 0.0.1
 
Loading...
Searching...
No Matches
marvin_Concepts.h File Reference
#include <iterator>
#include <type_traits>
#include <cstddef>
#include <complex>
#include <concepts>
#include <span>
#include <vector>
#include <random>

Go to the source code of this file.

Namespaces

namespace  marvin
 A mostly harmless top-level namespace.
 

Concepts

concept  marvin::FloatType
 Contrains T to be either a float or a double.
 
concept  marvin::ComplexFloatType
 
concept  marvin::RealOrComplexFloatType
 
concept  marvin::NumericType
 Constrains T to be any numeric type.
 
concept  marvin::FixedWidthSignedInteger
 Constrains T to be a fixed width signed int.
 
concept  marvin::ArrayLike
 Constrains T to a type that defines a const_iterator as a child, has an implementation of operator[](size_t) and has a .size() member.
 
concept  marvin::FloatArrayLike
 Constrains T to be an Array like, with a Float-like value type.
 
concept  marvin::SmartPointerType
 Constrains T to a class that implements get(), reset() operator*() and operator->().
 
concept  marvin::RandomEngineType
 

Functions

template<size_t N>
constexpr bool marvin::isPowerOfTwo ()