Maze Builder Docs 8.2.1
Loading...
Searching...
No Matches
app_contract.h
Go to the documentation of this file.
1#ifndef APP_CONTRACT_H
2#define APP_CONTRACT_H
3
4#include <string_view>
5
8namespace mazes
9{
12 {
13 public:
14 virtual ~app_contract() = default;
15
19 [[nodiscard]] virtual std::string_view apply(std::string_view unformatted_sv) noexcept = 0;
20 };
21} // namespace mazes
22
23#endif // APP_CONTRACT_H
Class for enforcing contracts on the runtime.
Definition app_contract.h:12
virtual std::string_view apply(std::string_view unformatted_sv) noexcept=0
Apply the contract to the given unformatted string view.