Scarab  v2.9.0
Project 8 C++ Utility Library
Public Member Functions | List of all members
overload_cast_impl< Args > Struct Template Reference

#include <common.h>

Public Member Functions

constexpr overload_cast_impl ()
 
template<typename Return >
constexpr auto operator() (Return(*pf)(Args...)) const noexcept -> decltype(pf)
 
template<typename Return , typename Class >
constexpr auto operator() (Return(Class::*pmf)(Args...), std::false_type={}) const noexcept -> decltype(pmf)
 
template<typename Return , typename Class >
constexpr auto operator() (Return(Class::*pmf)(Args...) const, std::true_type) const noexcept -> decltype(pmf)
 

Detailed Description

template<typename... Args>
struct pybind11::detail::overload_cast_impl< Args >

Definition at line 725 of file detail/common.h.

Constructor & Destructor Documentation

◆ overload_cast_impl()

constexpr overload_cast_impl ( )
inline

Definition at line 726 of file detail/common.h.

Member Function Documentation

◆ operator()() [1/3]

constexpr auto operator() ( Return(*)(Args...)  pf) const -> decltype(pf)
inlinenoexcept

Definition at line 729 of file detail/common.h.

◆ operator()() [2/3]

constexpr auto operator() ( Return(Class::*)(Args...)  pmf,
std::false_type  = {} 
) const -> decltype(pmf)
inlinenoexcept

Definition at line 733 of file detail/common.h.

◆ operator()() [3/3]

constexpr auto operator() ( Return(Class::*)(Args...) const  pmf,
std::true_type   
) const -> decltype(pmf)
inlinenoexcept

Definition at line 737 of file detail/common.h.


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