pool: add attributes to allocate

This commit is contained in:
Danny Robson 2019-01-21 17:14:02 +11:00
parent 41c9b504dc
commit c9f25a3822

View File

@ -78,7 +78,7 @@ namespace cruft {
// Data management
[[nodiscard]] T*
allocate (void)
allocate [[gnu::malloc]] [[gnu::returns_nonnull]] (void)
{
// double check we have enough capacity left
if (!m_next)