# `rfl::Size` `rfl::Size` can be used to impose constraints on any container that contains the method `.size()`, which includes `std::string`. For instance, you can a require a vector to be non-empty as follows: ```cpp using NonEmptyStringVector = rfl::Validator, rfl::Size>>; ``` Or you could require it to contain exactly zero or three elements, using validator composition: ```cpp using NoneOrThree = rfl::Validator, rfl::Size, rfl::EqualTo<3>>>>; ```