Constructors
Declared in <baltzo_localtimeperiod.h>
Create a LocalTimePeriod object having the (default) attribute values: ` descriptor() == LocalTimeDescriptor() utcStartTime() == bdlt::Datetime() utcEndTime() == bdlt::Datetime() ` Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used.
LocalTimePeriod();
» more...
Create a LocalTimePeriod object having the same value and the same allocator as the specified original object. The value of original becomes unspecified but valid, and its allocator remains unchanged.
LocalTimePeriod(bslmf::MovableRef<LocalTimePeriod> original) noexcept;
» more...
Create a LocalTimePeriod object having default attribute values, using the specified allocator to supply memory.
explicit
LocalTimePeriod(allocator_type const& allocator);
» more...
Create a LocalTimePeriod object having the same value as the specified original object, using the specified allocator (e.g., the address of a bslma::Allocator object) to supply memory. The allocator of original remains unchanged. If original and the newly created object have the same allocator then the value of original becomes unspecified but valid, and no exceptions will be thrown; otherwise original is unchanged and an exception may be thrown.
LocalTimePeriod(
bslmf::MovableRef<LocalTimePeriod> original,
allocator_type const& allocator);
» more...
Create a LocalTimePeriod object with the same value as the specified original object. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used.
LocalTimePeriod(
LocalTimePeriod const& original,
allocator_type const& allocator = allocator_type());
» more...
Create a LocalTimePeriod object having the specified descriptor, utcStartTime, and utcEndTime attribute values. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used. The behavior is undefined unless utcStartTime == utcEndTime, or if utcStartTime and utcEndTime are comparable (i.e., neither equals the a default constructed bdlt::DateTime object) unless `utcStartTime < utcEndTime. (See the isValidUtcStartAndEndTime` method.)
LocalTimePeriod(
LocalTimeDescriptor const& descriptor,
bdlt::Datetime const& utcStartTime,
bdlt::Datetime const& utcEndTime,
allocator_type const& allocator = allocator_type());
» more...
| Name | Description |
|---|---|
| original | the object whose value is copied |
| allocator | the allocator used to supply memory |