SpECTRE Documentation Coverage Report
Current view: top level - Utilities - Overloader.hpp Hit Total Coverage
Commit: 1c32b58340e006addc79befb2cdaa7547247e09c Lines: 1 3 33.3 %
Date: 2024-04-19 07:30:15
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.14