Cuberite
A lightweight, fast and extensible game server for Minecraft
OverloadedVariantAccess< Ts > Struct Template Reference

You can use this struct to use in std::visit example: std::visit( OverloadedVariantAccess { [&] (cFirstType & a_FirstTypeObject) { // Your code to handle cFirstType }, [&] (cSecondType & a_SecondTypeObject) { // YourCode to handle cSecondType }, ... More...

#include <Globals.h>

Inheritance diagram for OverloadedVariantAccess< Ts >:
Inheritance graph
[legend]
Collaboration diagram for OverloadedVariantAccess< Ts >:
Collaboration graph
[legend]

Detailed Description

template<class... Ts>
struct OverloadedVariantAccess< Ts >

You can use this struct to use in std::visit example: std::visit( OverloadedVariantAccess { [&] (cFirstType & a_FirstTypeObject) { // Your code to handle cFirstType }, [&] (cSecondType & a_SecondTypeObject) { // YourCode to handle cSecondType }, ...

} , YourVariant); You can use constant references if you want to.

Definition at line 327 of file Globals.h.


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