aboutsummaryrefslogtreecommitdiff
path: root/tests/type/set/buildfile
AgeCommit message (Collapse)AuthorFilesLines
2024-02-20Add string_set buildfile value typeBoris Kolpackov1-0/+4
This exposes the std::set<std::string> type to buildfiles. New functions: $size(<string-set>) Subscript returns true if the value is present and false otherwise (so it is mapped to std::set::contains()). For example: set = [string_set] a b c if ($set[b]) ... Note that append (+=) and prepend (=+) have the same semantics (std::set::insert()). For example: set = [string_set] a b set += c b # a b c set =+ d b # a b c d Example of iteration: set = [string_set] a b c for k: $set ...