Files
CMake/Source/cmArgumentParserTypes.h
Brad King f46b2e9142 cmArgumentParser: Model maybe-missing string with wrapper type
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.
2022-07-07 09:49:04 -04:00

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