File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -271,6 +271,14 @@ namespace etl
271
271
return Max_Size;
272
272
}
273
273
274
+ // *************************************************************************
275
+ // / Returns the maximum size of an item in the pool.
276
+ // *************************************************************************
277
+ size_t max_item_size () const
278
+ {
279
+ return Item_Size;
280
+ }
281
+
274
282
// *************************************************************************
275
283
// / Returns the maximum number of items in the pool.
276
284
// *************************************************************************
Original file line number Diff line number Diff line change @@ -288,6 +288,14 @@ namespace
288
288
CHECK (pool.max_size () == 4U );
289
289
}
290
290
291
+ // *************************************************************************
292
+ TEST (test_max_item_size)
293
+ {
294
+ etl::pool<Test_Data, 4 > pool;
295
+
296
+ CHECK (pool.max_item_size () == sizeof (Test_Data));
297
+ }
298
+
291
299
// *************************************************************************
292
300
TEST (test_size)
293
301
{
You can’t perform that action at this time.
0 commit comments