From b383fb0d1619ea857726d8b9a390ade9ecf7cd6f Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 24 Jan 2024 17:03:20 -0500 Subject: [PATCH] lambda vistor help --- include/blt/std/utility.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/blt/std/utility.h b/include/blt/std/utility.h index b007bb0..6990dbe 100644 --- a/include/blt/std/utility.h +++ b/include/blt/std/utility.h @@ -212,6 +212,12 @@ namespace blt //#define BLT_LAMBDA(type, var, code) [](const type& var) -> auto { return code; } //#define BLT_LAMBDA(var, code) [](var) -> auto { return code; } +/* + * std::visit(blt::lambda_visitor{ + * lambdas... + * }, data_variant); + */ + // TODO: WTF template struct lambda_visitor : TLambdas... {