Little adapter that gives a bracket operator to types that don't have one.
It completely ignores the index and returns a constant.
Definition at line 58 of file BatchHelpers.h.
Public Member Functions | |
constexpr | BracketAdapter (T payload) noexcept |
constexpr bool | isBatch () const noexcept |
constexpr | operator double () const |
constexpr double | operator[] (std::size_t) const |
Private Attributes | |
const T | _payload |
#include <BatchHelpers.h>
|
inlineconstexprnoexcept |
Definition at line 61 of file BatchHelpers.h.
|
inlineconstexprnoexcept |
Definition at line 72 of file BatchHelpers.h.
|
inlineconstexpr |
Definition at line 68 of file BatchHelpers.h.
|
inlineconstexpr |
Definition at line 64 of file BatchHelpers.h.
|
private |
Definition at line 77 of file BatchHelpers.h.