BitStream
Loading...
Searching...
No Matches
parameter.h File Reference
#include "assert.h"
#include "platform.h"
#include <utility>
#include <type_traits>

Go to the source code of this file.

Classes

class  bitstream::out< T >
 
class  bitstream::finally< Lambda >
 Test type. More...
 

Namespaces

namespace  bitstream
 

Typedefs

template<typename T >
using bitstream::in = std::conditional_t<(sizeof(T)<=16 &&std::is_trivially_copy_constructible_v< T >), std::add_const_t< T >, std::add_lvalue_reference_t< std::add_const_t< T > > >
 Passes by const or const reference depending on size.
 
template<typename Stream , typename T >
using bitstream::inout = std::conditional_t< Stream::writing, in< T >, std::add_lvalue_reference_t< T > >
 Passes by reference.
 

Functions

template<typename Lambda >
 bitstream::finally (Lambda func) -> final ly< Lambda >