mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
Bindings to `std::string` require one value. Some clients have been filtering `keywordsMissingValue` to support keywords that tolerate a missing value. Offer them a type-safe way to achieve this instead.
25 lines
431 B
C++
25 lines
431 B
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
|
#pragma once
|
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
|
|
|
namespace ArgumentParser {
|
|
|
|
template <typename T>
|
|
struct Maybe : public T
|
|
{
|
|
};
|
|
|
|
template <typename T>
|
|
struct MaybeEmpty : public T
|
|
{
|
|
};
|
|
|
|
template <typename T>
|
|
struct NonEmpty : public T
|
|
{
|
|
};
|
|
|
|
} // namespace ArgumentParser
|