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
8
namespace
mazes
9
{
11
class
app_contract
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
mazes::app_contract
Class for enforcing contracts on the runtime.
Definition
app_contract.h:12
mazes::app_contract::apply
virtual std::string_view apply(std::string_view unformatted_sv) noexcept=0
Apply the contract to the given unformatted string view.
include
MazeBuilder
app_contract.h
Generated by
1.12.0