Lines Matching refs:cap
200 constexpr TestCapacity cap(123u); in StaticLinearRangeAndCapacityTest() local
201 static_assert(TestCapacity(&cap).capacity() == 123u, ""); in StaticLinearRangeAndCapacityTest()
205 static_assert(TestRange(&cap).capacity() == 123u, ""); in StaticLinearRangeAndCapacityTest()
206 static_assert(TestRange(&cap).offset() == 0u, ""); in StaticLinearRangeAndCapacityTest()
207 static_assert(TestRange(&cap).size() == 123u, ""); in StaticLinearRangeAndCapacityTest()
208 static_assert(TestRange(&cap).endOffset() == 123u, ""); in StaticLinearRangeAndCapacityTest()
210 constexpr TestRange range(&cap, 50u, 100u); in StaticLinearRangeAndCapacityTest()
217 static_assert(TestRange(&cap, 20u, 30u).capacity() == 123u, ""); in StaticLinearRangeAndCapacityTest()
218 static_assert(TestRange(&cap, 20u, 30u).offset() == 20u, ""); in StaticLinearRangeAndCapacityTest()
219 static_assert(TestRange(&cap, 20u, 30u).size() == 30u, ""); in StaticLinearRangeAndCapacityTest()
220 static_assert(TestRange(&cap, 20u, 30u).endOffset() == 50u, ""); in StaticLinearRangeAndCapacityTest()
222 static_assert(TestRange(&cap, 200u, 30u).capacity() == 123u, ""); in StaticLinearRangeAndCapacityTest()
223 static_assert(TestRange(&cap, 200u, 30u).offset() == 123u, ""); in StaticLinearRangeAndCapacityTest()
224 static_assert(TestRange(&cap, 200u, 30u).size() == 0u, ""); in StaticLinearRangeAndCapacityTest()
225 static_assert(TestRange(&cap, 200u, 30u).endOffset() == 123u, ""); in StaticLinearRangeAndCapacityTest()