LLVM API Documentation

None.h
Go to the documentation of this file.
00001 //===-- None.h - Simple null value for implicit construction ------*- C++ -*-=//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 //  This file provides None, an enumerator for use in implicit constructors
00011 //  of various (usually templated) types to make such construction more
00012 //  terse.
00013 //
00014 //===----------------------------------------------------------------------===//
00015 
00016 #ifndef LLVM_ADT_NONE_H
00017 #define LLVM_ADT_NONE_H
00018 
00019 namespace llvm {
00020 /// \brief A simple null object to allow implicit construction of Optional<T>
00021 /// and similar types without having to spell out the specialization's name.
00022 enum NoneType {
00023   None
00024 };
00025 }
00026 
00027 #endif