mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-04 05:01:06 -05:00
29 lines
585 B
C++
Executable file
29 lines
585 B
C++
Executable file
// 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
|