ATLAS Offline Software
Loading...
Searching...
No Matches
inplace_vector.h File Reference

Wrapper for C++26 std::inplace_vector. More...

#include <version>
#include <boost/container/small_vector.hpp>
Include dependency graph for inplace_vector.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  CxxUtils

Typedefs

template<class T, size_t N>
using CxxUtils::inplace_vector = boost::container::small_vector<T, N>

Detailed Description

Wrapper for C++26 std::inplace_vector.

Author
scott snyder snyde.nosp@m.r@bn.nosp@m.l.gov
Date
Mar, 2026

C++26 adds std::inplace_vector, where the vector is contained within the instance (with a fixed upper bound) rather than being dynamically allocated. This wraps std::inplace_vector as CxxUtils::inplace_vector, falling back to boost::container::small_vector if std::inplace_vector is not available.

Definition in file inplace_vector.h.