boostorg / boostorg/type_traits

add is_function_pointer

Open
#193 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
66
Forks
87
PR merge metrics
No merged PRs in 30d

Description

is_function_pointer like is_member_function_pointer
```
// Distributed under the Boost Software License Version 1.0 https://www.boost.org/LICENSE_1_0.txt
// Copyright Gero Peterhoff

#ifndef BOOST_TYPE_TRAITS_IS_FUNCTION_POINTER_HPP
#define BOOST_TYPE_TRAITS_IS_FUNCTION_POINTER_HPP

#include
#include
#include

namespace boost
{
template
struct is_function_pointer : public integral_constant
<
bool,
is_pointer::value && is_function::type>::value
> {};

#if !defined(BOOST_NO_CXX17_INLINE_VARIABLES)
template inline constexpr bool is_function_pointer_v = is_function_pointer::value;
#endif
} // boost

#endif // BOOST_TYPE_TRAITS_IS_FUNCTION_POINTER_HPP
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.