OSSIA
Open Scenario System for Interactive Application
optional.hpp
1 #pragma once
2 
3 #include <ossia/detail/config.hpp>
4 
5 #include <optional>
6 namespace ossia
7 {
8 template <typename Opt, typename Arg>
9 auto get_value_or(const Opt& opt, Arg&& arg)
10 {
11  return opt.value_or(std::forward<Arg>(arg));
12 }
13 }
14 
15 namespace ossia
16 {
17 using none_t = decltype(std::nullopt);
18 }
Definition: git_info.h:7