| The Gaudi Framework v32r1 (f65d50dc)

Public Member Functions | List of all members
Gaudi::Functional::details::details2::get_from_handle< In > Struct Template Reference

`#include <GaudiAlg/FunctionalDetails.h>`

## Public Member Functions
template<template< typename > class Handle, typename I , typename = std::enable_if_t<std::is_convertible_v<I, In>>>
auto | operator() (const Handle< I > &h) -> const In &
template<template< typename > class Handle, typename I , typename = std::enable_if_t<std::is_convertible_v<I*, In>>>
auto | operator() (const Handle< I > &h) -> const In

## Detailed Description

### template<typename In>
struct Gaudi::Functional::details::details2::get_from_handle< In >

Definition at line 193 of file FunctionalDetails.h.

## Member Function Documentation

## ◆ operator()() [1/2]

template<typename In >
template<template< typename > class Handle, typename I , typename = std::enable_if_t<std::is_convertible_v<I, In>>>

auto Gaudi::Functional::details::details2::get_from_handle< In >::operator() | ( | const Handle< I > & | h | ) | -> const In&
| inline

Definition at line 195 of file FunctionalDetails.h.

195 {
196 return *h.get();
197 }

## ◆ operator()() [2/2]

template<typename In >
template<template< typename > class Handle, typename I , typename = std::enable_if_t<std::is_convertible_v<I*, In>>>

auto Gaudi::Functional::details::details2::get_from_handle< In >::operator() | ( | const Handle< I > & | h | ) | -> const In
| inline

Definition at line 200 of file FunctionalDetails.h.

200 {
201 return h.getIfExists();
202 } // In is-a pointer

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

- GaudiAlg/GaudiAlg/FunctionalDetails.h