clang-format: update c/cc coding style
Update all cc code using .clang-format; please do so as well for future PRs etc.; emacs has a handy 'clang-format' mode to make this automatic. For comparing old changes with git blame, we can disregard this one using --ignore-rev (see https://www.moxio.com/blog/43/ignoring-bulk-change-commits-with-git-blame )
This commit is contained in:
@ -16,14 +16,18 @@
|
||||
|
||||
#include "optional.hpp"
|
||||
|
||||
|
||||
namespace Mu {
|
||||
|
||||
/// Either a value of type T, or None
|
||||
template <typename T> using Option=tl::optional<T>;
|
||||
template <typename T> using Option = tl::optional<T>;
|
||||
|
||||
template <typename T> Option<T> Some(T&& t) { return std::move(t); }
|
||||
template <typename T>
|
||||
Option<T>
|
||||
Some(T&& t)
|
||||
{
|
||||
return std::move(t);
|
||||
}
|
||||
constexpr auto Nothing = tl::nullopt; // 'None' is take already
|
||||
|
||||
}
|
||||
} // namespace Mu
|
||||
#endif /*MU_OPTION__*/
|
||||
|
||||
Reference in New Issue
Block a user