LLVM
4.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
llvm.src
include
llvm
ADT
None.h
Go to the documentation of this file.
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 LLVM_ADT_NONE_H
17
#define LLVM_ADT_NONE_H
18
19
namespace
llvm {
20
/// \brief A simple null object to allow implicit construction of Optional<T>
21
/// and similar types without having to spell out the specialization's name.
22
enum class
NoneType
{
None
};
23
const
NoneType
None
=
None
;
24
}
25
26
#endif
llvm::None
const NoneType None
Definition:
None.h:23
llvm::NoneType
NoneType
A simple null object to allow implicit construction of Optional<T> and similar types without having to ...
Definition:
None.h:22
llvm::NoneType::None
Generated on Wed Mar 8 2017 17:18:00 for LLVM by
1.8.6