CXXLanguageStandard
The supported C++ language standard you use to compile C++ sources in the package.
LanguageStandardSettings.swift:92CXXLanguageStandard.mdenum CXXLanguageStandard
Aliases are available for some C++ language standards. For example, use cxx98
or cxx03
for the “ISO C++ 1998 with amendments” standard. To learn more, see C++ Support in Clang.
Enumeration Cases
case cxx03
The identifier for the ISO C++ 1998 language standard with amendments.
case cxx11
The identifier for the ISO C++ 2011 language standard with amendments.
case cxx14
The identifier for the ISO C++ 2014 language standard with amendments.
case cxx1z
The identifier for the ISO C++ 2017 language standard with amendments.
case cxx98
The identifier for the ISO C++ 1998 language standard with amendments.
case gnucxx03
The identifier for the ISO C++ 1998 language standard with amendments and GNU extensions.
case gnucxx11
The identifier for the ISO C++ 2011 language standard with amendments and GNU extensions.
case gnucxx14
The identifier for the ISO C++ 2014 language standard with amendments and GNU extensions.
case gnucxx1z
The identifier for the ISO C++ 2017 language standard with amendments and GNU extensions.
case gnucxx98
The identifier for the ISO C++ 1998 language standard with amendments and GNU extensions.
case cxx17
The identifier for the ISO C++ 2017 language standard with amendments.
case cxx20
The identifier for the ISO C++ 2020 language standard.
case cxx2b
The identifier for the ISO C++ 2023 draft language standard.
case gnucxx17
The identifier for the ISO C++ 2017 language standard with amendments and GNU extensions.
case gnucxx20
The identifier for the ISO C++ 2020 language standard with GNU extensions.
case gnucxx2b
The identifier for the ISO C++ 2023 draft language standard with GNU extensions.
Hashing
Operator Functions
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.
Creating a Value
Accessing the Raw Value
rawValue
RawValue
See also
enum SwiftVersion
The version of the Swift language you use to compile Swift sources in the package.
enum CLanguageStandard
The supported C language standard you use to compile C sources in the package.
var swiftLanguageVersions: [SwiftVersion]?
The list of Swift versions with which this package is compatible.
var cLanguageStandard: CLanguageStandard?
The C language standard to use for all C targets in this package.
var cxxLanguageStandard: CXXLanguageStandard?
The C++ language standard to use for all C++ targets in this package.
Citizens in PackageDescription
Conformances
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.