GoThread
appearance log in
home all local communities
c/cpp@programming.dev

C++

log in to join
follow from another instance

Not on this instance? Enter your own instance's domain to go straight to following c/cpp@programming.dev there.

hashtags

#cpp
0
c/cpp@programming.dev · lysdexic@programming.dev · 27 Aug 2026 06:22

C++26: std::inplace_vector

#cpp
Sandor Dargo’s Blog C++26: std::inplace_vector C++26 is generous with new containers — we’re getting both std::hive and std::inplace_vector. In this post, we’ll look at the latter. Until C++26, the standard library had no vector-like container with compile-time fixed capacity whose element storage is guaranteed to live inside the container object itself. std::vector obtains storage through its allocator — typically the heap. std::array has a fixed size. If you need a dynamically-resizable array that never allocates — because you’re on bare metal, because allocation latency is unacceptable, or because you need the data to live inside the object for serialization — there was no standard answer.… www.sandordargo.com

check post at origin

0 comments

0 comments

log in to comment.

about

The center for all discussion and news regarding C++.

Rules

  • Respect instance rules.
  • Don’t be a jerk.
  • Please keep all posts related to C++.
members
2404
posts
50
created
13 Jun 2023
active / week
1
active / month
3

moderators

  • @lysdexic@programming.dev
  • @Nihili0@programming.dev

rss · modlog

GoThread · self-hosted threadiverse · instances · modlog · rss · appearance · AGPL-3.0