Line data Source code
1 0 : // Distributed under the MIT License. 2 : // See LICENSE.txt for details. 3 : 4 : #pragma once 5 : 6 : /*! 7 : * \ingroup UtilitiesGroup 8 : * \brief Used for overloading lambdas, useful for lambda-SFINAE 9 : * 10 : * \snippet Utilities/Test_Overloader.cpp overloader_example 11 : */ 12 : template <class... Fs> 13 1 : struct Overloader : Fs... { 14 : using Fs::operator()...; 15 : }; 16 : 17 : template <class... Fs> 18 0 : Overloader(Fs...) -> Overloader<Fs...>;