aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/reserve.h
blob: 8ee2d3182258421b6cdaeee4371702a8d56e6ec7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#pragma once

namespace NDetail {
    struct [[nodiscard]] TReserveTag {
        size_t Capacity;
    };
} // namespace NDetail

constexpr ::NDetail::TReserveTag Reserve(size_t capacity) {
    return ::NDetail::TReserveTag{capacity};
}