|
||||
File indexing completed on 2025-01-18 10:01:40
0001 0002 // Copyright 2021, Jefferson Science Associates, LLC. 0003 // Subject to the terms in the LICENSE file found in the top-level directory. 0004 0005 #pragma once 0006 0007 /// Ideally we'd just use std::any, but we are restricted to C++14 for the time being 0008 struct JAny { 0009 virtual ~JAny() = default; 0010 }; 0011 0012 /// Ideally we'd just use std::any, but we are restricted to C++14 for the time being 0013 template <typename T> 0014 struct JAnyT : JAny { 0015 T t; 0016 JAnyT(T&& tt) : t(std::move(tt)) {} 0017 ~JAnyT() override = default; // deletes the t 0018 }; 0019
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |