wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
wowlib::formats::detail::SlotSequence Concept Reference

A container of independent SLOTS rather than one logical array — a chunk that may appear several times, each occurrence complete in itself (Repeated<>, opting in with ValidationSlots). More...

#include <wowlib/formats/common/validation.hpp>

Concept definition

template<typename T>
concept SlotSequence = ValidatableSequence<T> && requires {
{ T::ValidationSlots } -> std::convertible_to<bool>;
} && T::ValidationSlots
A container of independent SLOTS rather than one logical array — a chunk that may appear several time...
A member the walker can iterate element-wise: std::vector, std::array, Repeated<> and std::string all...

Detailed Description

A container of independent SLOTS rather than one logical array — a chunk that may appear several times, each occurrence complete in itself (Repeated<>, opting in with ValidationSlots).

A count contract applies to every filled slot separately, where on a plain nested vector it would apply to the outer count.

Definition at line 215 of file validation.hpp.