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 29 of file BracketAdapters.h.
Public Member Functions | |
constexpr | BracketAdapter (RooSpan< const T > payload) noexcept |
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 <BracketAdapters.h>
|
inlineconstexprnoexcept |
Definition at line 32 of file BracketAdapters.h.
|
inlineconstexprnoexcept |
Definition at line 35 of file BracketAdapters.h.
|
inlineconstexprnoexcept |
Definition at line 46 of file BracketAdapters.h.
|
inlineconstexpr |
Definition at line 42 of file BracketAdapters.h.
|
inlineconstexpr |
Definition at line 38 of file BracketAdapters.h.
|
private |
Definition at line 51 of file BracketAdapters.h.