MeshLib C++ Docs
Loading...
Searching...
No Matches
MRResizeNoInit.h File Reference
#include "MRMeshFwd.h"
#include "MRMacros.h"
#include <compare>
#include <concepts>
#include <cstddef>
#include <iterator>

Go to the source code of this file.

Classes

struct  MR::detail::NoInitIterator< T >
 random-access iterator over a range of not-initialized T for std::vector::insert More...
struct  MR::detail::NoInitIterator< T >::Ref

Namespaces

namespace  MR
 Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
namespace  MR::detail
 for internal use: namespace detail is not bound to other languages

Enumerations

enum class  MR::ReserveMode { MR::ReserveMode::Exact , MR::ReserveMode::Grow }
 how resizeNoInit reserves the memory when the capacity is short More...

Functions

template<typename T, typename A>
void MR::resizeNoInit (std::vector< T, A > &vec, size_t targetSize, ReserveMode mode=ReserveMode::Exact)