This documentation is automatically generated by online-judge-tools/verification-helper
#include "src/sys/ejection.hpp"
#pragma once
/**
* @file ejection.hpp
* @brief Ejection
*/
#include <iostream>
namespace workspace {
namespace internal {
struct ejection {
bool exit = 0;
};
} // namespace internal
/**
* @brief eject from a try block, throw nullptr
* @param arg output
*/
template <class Tp> void eject(Tp const &arg) {
std::cout << arg << "\n";
throw internal::ejection{};
}
void exit() { throw internal::ejection{true}; }
} // namespace workspace
#line 2 "src/sys/ejection.hpp"
/**
* @file ejection.hpp
* @brief Ejection
*/
#include <iostream>
namespace workspace {
namespace internal {
struct ejection {
bool exit = 0;
};
} // namespace internal
/**
* @brief eject from a try block, throw nullptr
* @param arg output
*/
template <class Tp> void eject(Tp const &arg) {
std::cout << arg << "\n";
throw internal::ejection{};
}
void exit() { throw internal::ejection{true}; }
} // namespace workspace