MostlyHarmless 0.0.1
 
Loading...
Searching...
No Matches
marvin Namespace Reference

A mostly harmless top-level namespace. More...

Namespaces

namespace  containers
 Views, wrappers and custom containers.
 
namespace  dsp
 DSP helper and utility functions.
 
namespace  library
 Standard library-esque utilities.
 
namespace  math
 Math helper functions and classes.
 
namespace  utils
 Utility helper functions and classes.
 

Concepts

concept  FloatType
 Contrains T to be either a float or a double.
 
concept  ComplexFloatType
 
concept  RealOrComplexFloatType
 
concept  NumericType
 Constrains T to be any numeric type.
 
concept  FixedWidthSignedInteger
 Constrains T to be a fixed width signed int.
 
concept  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  FloatArrayLike
 Constrains T to be an Array like, with a Float-like value type.
 
concept  SmartPointerType
 Constrains T to a class that implements get(), reset() operator*() and operator->().
 
concept  RandomEngineType
 

Functions

template<size_t N>
constexpr bool isPowerOfTwo ()
 

Detailed Description

A mostly harmless top-level namespace.

Function Documentation

◆ isPowerOfTwo()

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

Checks if N is a power of two.

Returns
true if N is a power of two, otherwise false.