rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
rexlib::operand_names< N > Struct Template Reference

Compile time list of operand names. More...

#include <rexlib/core/operation/operand_names.hpp>

Public Member Functions

span< const char *const > get () const noexcept
 Get the names as a span.
 

Public Attributes

std::array< const char *, N > values
 

Static Public Attributes

static REXLIB_CONST_CONSTEXPR std::size_t count = N
 

Detailed Description

template<std::size_t N>
struct rexlib::operand_names< N >

Compile time list of operand names.

The extent doubles as the operand count, so an operation's names and its arity are one declaration rather than two that could disagree.

The names are not owned. They must have static storage duration, which is the case for the string literals the declaration macros produce.

Template Parameters
NThe number of operands.

Member Function Documentation

◆ get()

template<std::size_t N>
span< const char *const > rexlib::operand_names< N >::get ( ) const
inlinenoexcept

Get the names as a span.

Returns
span<const char* const> The names.

The documentation for this struct was generated from the following file: