libQuotient
A Qt library for building matrix clients
Loading...
Searching...
No Matches
omittable.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2018 Kitsune Ral <kitsune-ral@users.sf.net>
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include <optional>
7
8#include "util.h" // For backwards compatibility with code using lift() and merge()
9
10namespace Quotient {
11
12template <typename T>
13using Omittable [[deprecated("Use std::optional<> instead")]] = std::optional<T>;
14
15[[deprecated("Use std::nullopt instead")]]
16constexpr auto none = std::nullopt;
17
18} // namespace Quotient
constexpr auto none
Definition omittable.h:16