boostorg / boostorg/type_traits
add is_character
- Dominant language
- C++
- Stars
- 66
- Forks
- 87
- PR merge metrics
- No merged PRs in 30d
Description
is_character.hpp
```
// 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_CHARACTER_HPP
#define BOOST_TYPE_TRAITS_IS_CHARACTER_HPP
#include
#include
namespace boost
{
template struct is_character : public false_type{};
template struct is_character : public is_character{};
template struct is_character : public is_character{};
template struct is_character : public is_character{};
#if defined(__cpp_unicode_characters)
template <> struct is_character : public true_type{};
template <> struct is_character : public true_type{};
#endif
#if defined(__cpp_char8_t)
template <> struct is_character : public true_type{};
#endif
template <> struct is_character : public true_type{};
template <> struct is_character : public true_type{};
#if !defined(BOOST_NO_CXX17_INLINE_VARIABLES)
template inline constexpr bool is_character_v = is_character::value;
#endif
} // boost
#endif // BOOST_TYPE_TRAITS_IS_CHARACTER_HPP
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the proposed is_character.hpp and the surrounding type_traits header organization. Verify the listed character types and cv-qualified cases against the project's conventions; the work is done when the new trait is integrated consistently and its supported cases are covered by the repository's existing checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100