Derecho  0.9
Distributed systems toolkit for RDMA
Static Public Member Functions | List of all members
derecho::rpc::String< str > Struct Template Reference

This "compile-time String" puts a short sequence of characters into a type's template parameter, allowing it to be accessed at compile-time in a constexpr hash function. More...

#include <rpc_utils.hpp>

Static Public Member Functions

static constexpr uint64_t hash ()
 

Detailed Description

template<char... str>
struct derecho::rpc::String< str >

This "compile-time String" puts a short sequence of characters into a type's template parameter, allowing it to be accessed at compile-time in a constexpr hash function.

This allows us to generate FunctionTags at compile time from the literal names of functions.

Definition at line 42 of file rpc_utils.hpp.

Member Function Documentation

◆ hash()

template<char... str>
static constexpr uint64_t derecho::rpc::String< str >::hash ( )
inlinestatic

Definition at line 43 of file rpc_utils.hpp.


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