- inplace_vector[meta header]
- std[meta namespace]
- inplace_vector[meta class]
- function[meta id-type]
- cpp26[meta cpp]
constexpr iterator end() noexcept; // (1) C++26
constexpr const_iterator end() const noexcept; // (2) C++26末尾の次を指すイテレータを取得する。
- (1) : 非
constな文脈で末尾の次を指すイテレータを取得する。 - (2) :
constな文脈で末尾の次を指す読み取り専用イテレータを取得する。
非constな文脈ではiterator型で末尾の次を指すイテレータを返し、
constな文脈ではconst_iterator型で末尾の次を指すイテレータを返す。
投げない
定数時間
#include <print>
#include <inplace_vector>
int main()
{
std::inplace_vector<int, 5> iv = {1, 2, 3};
for (auto i = iv.begin(); i != iv.end(); ++i) {
std::println("{}", *i);
}
}- end()[color ff0000]
- iv.begin()[link begin.md]
1
2
3
- C++26
- Clang: 23 [mark verified]
- GCC: 16 [mark verified]
- Visual C++: 2026 Update 2 [mark noimpl]