complex 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright (c) 1999
  3. * Silicon Graphics Computer Systems, Inc.
  4. *
  5. * Copyright (c) 1999
  6. * Boris Fomitchev
  7. *
  8. * This material is provided "as is", with absolutely no warranty expressed
  9. * or implied. Any use is at your own risk.
  10. *
  11. * Permission to use or copy this software for any purpose is hereby granted
  12. * without fee, provided the above notices are retained on all copies.
  13. * Permission to modify the code and to distribute modified code is granted,
  14. * provided the above notices are retained, and a notice that the code was
  15. * modified is included with the above copyright notice.
  16. *
  17. */
  18. #ifndef _STLP_COMPLEX
  19. #ifndef _STLP_OUTERMOST_HEADER_ID
  20. # define _STLP_OUTERMOST_HEADER_ID 0x10
  21. # define _STLP_COMPLEX
  22. # include <stl/_prolog.h>
  23. #endif
  24. #if (_STLP_OUTERMOST_HEADER_ID == 0x10)
  25. // This header declares the template class complex, as described in
  26. // in the C++ Standard. Single-precision complex numbers
  27. // are complex<float>, double-precision are complex<double>, and
  28. // quad precision are complex<long double>.
  29. // Note that the template class complex is declared within namespace
  30. // std, as called for by the draft C++ standard
  31. # ifndef _STLP_INTERNAL_COMPLEX
  32. # include <stl/_complex.h>
  33. # endif
  34. #endif
  35. #if (_STLP_OUTERMOST_HEADER_ID != 0x10) || defined (_STLP_IMPORT_VENDOR_STD)
  36. # if defined (_STLP_HAS_INCLUDE_NEXT)
  37. # include_next <complex>
  38. # else
  39. # include _STLP_NATIVE_HEADER(complex)
  40. # endif
  41. #endif
  42. #if (_STLP_OUTERMOST_HEADER_ID == 0x10 )
  43. # include <stl/_epilog.h>
  44. # undef _STLP_OUTERMOST_HEADER_ID
  45. #endif
  46. #endif /* _STLP_COMPLEX */
  47. // Local Variables:
  48. // mode:C++
  49. // End: