WPILibC++
2018.4.1-20180729124724-1140-gcbb62fb
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
None.h
1
//===-- None.h - Simple null value for implicit construction ------*- C++ -*-=//
2
//
3
// The LLVM Compiler Infrastructure
4
//
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
7
//
8
//===----------------------------------------------------------------------===//
9
//
10
// This file provides None, an enumerator for use in implicit constructors
11
// of various (usually templated) types to make such construction more
12
// terse.
13
//
14
//===----------------------------------------------------------------------===//
15
16
#ifndef WPIUTIL_WPI_NONE_H
17
#define WPIUTIL_WPI_NONE_H
18
19
namespace
wpi
{
22
// (constant value 1 in an attempt to workaround MSVC build issue... )
23
enum class
NoneType
{ None = 1 };
24
const
NoneType
None = NoneType::None;
25
}
26
27
#endif
wpi
namespace to hold default to_json function
Definition:
SmallString.h:21
wpi::NoneType
NoneType
A simple null object to allow implicit construction of Optional
and similar types without having t...
Definition:
None.h:23
wpiutil
src
main
native
include
wpi
None.h
Generated on Sun Jul 29 2018 12:48:31 for WPILibC++ by
1.8.8