Constexpr matching support in IsEmpty and SizeIs matchers

This commit is contained in:
Martin Hořeňovský
2026-05-12 11:05:29 +02:00
parent 651247c7f4
commit 3cdae5faf0
4 changed files with 31 additions and 16 deletions
+9
View File
@@ -491,6 +491,15 @@ TEST_CASE("Constexpr support for matchers", "[constexpr][matchers]") {
}
```
### First party constexpr matchers
Some (but not all) of Catch2's generic matchers support `constexpr`
matching. Currently, this includes:
* `IsEmpty()`
* `SizeIs(size_t target_size)`
* `SizeIs(Matcher size_matcher)`
---