mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-04 21:21:01 -05:00
30 lines
585 B
C++
30 lines
585 B
C++
|
// Copyright (c) 2014-2022 Dr. Colin Hirsch and Daniel Frey
|
||
|
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
|
||
|
|
||
|
#ifndef TAO_PEGTL_INTERNAL_INPUT_PAIR_HPP
|
||
|
#define TAO_PEGTL_INTERNAL_INPUT_PAIR_HPP
|
||
|
|
||
|
#include <cstdint>
|
||
|
|
||
|
#include "../config.hpp"
|
||
|
|
||
|
namespace TAO_PEGTL_NAMESPACE::internal
|
||
|
{
|
||
|
template< typename Data >
|
||
|
struct input_pair
|
||
|
{
|
||
|
Data data;
|
||
|
std::uint8_t size;
|
||
|
|
||
|
using data_t = Data;
|
||
|
|
||
|
explicit operator bool() const noexcept
|
||
|
{
|
||
|
return size > 0;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
} // namespace TAO_PEGTL_NAMESPACE::internal
|
||
|
|
||
|
#endif
|