MeshLib Documentation
Loading...
Searching...
No Matches
MRBuffer.h File Reference
#include "MRNoDefInit.h"
#include "MRId.h"
#include <cassert>
#include <concepts>
#include <memory>
#include <type_traits>

Go to the source code of this file.

Classes

struct  MR::ZeroOnMove< T >
 
struct  MR::NoCtor< T >
 
class  MR::Buffer< V, I >
 std::vector<V>-like container that is 1) resized without initialization of its elements, 2) much simplified: no push_back and many other methods More...
 
struct  MR::BMap< T, I >
 flat map: I -> T More...
 
struct  MR::PackMapping
 

Namespaces

namespace  MR
 

Concepts

concept  MR::Trivial
 

Functions

template<typename T , typename I >
MR::getAt (const Buffer< T, I > &bmap, I key)
 given some buffer map and a key, returns the value associated with the key, or default value if key is invalid
 
template<typename T , typename I >
auto MR::begin (const Buffer< T, I > &a)
 
template<typename T , typename I >
auto MR::begin (Buffer< T, I > &a)
 
template<typename T , typename I >
auto MR::end (const Buffer< T, I > &a)
 
template<typename T , typename I >
auto MR::end (Buffer< T, I > &a)
 
template<typename T >
BMap< T, T > MR::compose (const BMap< T, T > &a, const BMap< T, T > &b)
 computes the composition of two mappings x -> a(b(x))