/src/Fast-DDS/thirdparty/taocpp-pegtl/pegtl/internal/input_pair.hpp
Line | Count | Source (jump to first uncovered line) |
1 | | // Copyright (c) 2014-2020 Dr. Colin Hirsch and Daniel Frey |
2 | | // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ |
3 | | |
4 | | #ifndef TAO_PEGTL_INTERNAL_INPUT_PAIR_HPP |
5 | | #define TAO_PEGTL_INTERNAL_INPUT_PAIR_HPP |
6 | | |
7 | | #include <cstdint> |
8 | | |
9 | | #include "../config.hpp" |
10 | | |
11 | | namespace tao |
12 | | { |
13 | | namespace TAO_PEGTL_NAMESPACE |
14 | | { |
15 | | namespace internal |
16 | | { |
17 | | template< typename Data > |
18 | | struct input_pair |
19 | | { |
20 | | Data data; |
21 | | std::uint8_t size; |
22 | | |
23 | | using data_t = Data; |
24 | | |
25 | | explicit operator bool() const noexcept |
26 | 0 | { |
27 | 0 | return size > 0; |
28 | 0 | } Unexecuted instantiation: tao::pegtl::internal::input_pair<char>::operator bool() const Unexecuted instantiation: tao::pegtl::internal::input_pair<char32_t>::operator bool() const |
29 | | }; |
30 | | |
31 | | } // namespace internal |
32 | | |
33 | | } // namespace TAO_PEGTL_NAMESPACE |
34 | | |
35 | | } // namespace tao |
36 | | |
37 | | #endif |