Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
Loading...
Searching...
No Matches
FastDelegate.hpp File Reference

Zero-allocating Small Buffer Optimized (SBO) static delegate dispatcher. More...

#include <cassert>
#include <cstddef>
#include <new>
#include <type_traits>
#include <utility>
+ Include dependency graph for FastDelegate.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  corium::internal::EventHandlerDelegate< EventType, InlineSize >
 Lightweight non-allocating delegate wrapper with 32-byte Small Buffer Optimization (SBO). Eliminates std::function heap allocations and virtual table overhead for event handlers. More...
 

Namespaces

namespace  corium
 
namespace  corium::internal
 

Typedefs

template<typename EventType , std::size_t InlineSize = 32>
using corium::internal::FastDelegate = EventHandlerDelegate< EventType, InlineSize >
 Alias for EventHandlerDelegate.
 

Detailed Description

Zero-allocating Small Buffer Optimized (SBO) static delegate dispatcher.