Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
845 B

  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. #ifndef LLVM_ADT_NONE_H
  16. #define LLVM_ADT_NONE_H
  17. namespace llvm {
  18. /// \brief A simple null object to allow implicit construction of Optional<T>
  19. /// and similar types without having to spell out the specialization's name.
  20. enum NoneType {
  21. None
  22. };
  23. }
  24. #endif