text
stringlengths
1
22.8M
```ruby class Noti < Formula desc "Trigger notifications when a process completes" homepage "path_to_url" url "path_to_url" sha256 your_sha256_hash license "MIT" bottle do sha256 cellar: :any_skip_relocation, arm64_sonoma: your_sha256_hash sha256 cellar: :any_skip_relocation, arm64_ventura: your_sha256_hash sha256 cellar: :any_skip_relocation, arm64_monterey: your_sha256_hash sha256 cellar: :any_skip_relocation, arm64_big_sur: your_sha256_hash sha256 cellar: :any_skip_relocation, sonoma: your_sha256_hash sha256 cellar: :any_skip_relocation, ventura: your_sha256_hash sha256 cellar: :any_skip_relocation, monterey: your_sha256_hash sha256 cellar: :any_skip_relocation, big_sur: your_sha256_hash sha256 cellar: :any_skip_relocation, x86_64_linux: your_sha256_hash end depends_on "go" => :build def install ldflags = %W[ -s -w -X github.com/variadico/noti/internal/command.Version=#{version} ] system "go", "build", *std_go_args(ldflags:), "cmd/noti/main.go" man1.install "docs/man/dist/noti.1" man5.install "docs/man/dist/noti.yaml.5" end test do assert_match "noti version #{version}", shell_output("#{bin}/noti --version").chomp system bin/"noti", "-t", "Noti", "-m", "'Noti recipe installation test has finished.'" end end ```
The Pacific Center for Human Growth, or simply the Pacific Center, is a community center focusing on LGBT people. The center operates from a Victorian house on Telegraph Avenue south of the University of California in Berkeley, California. History The center was founded in 1973 as a response to a brutal gay bashing in downtown Oakland, a major city that neighbors Berkeley. Often referred to as the Berkeley LGBT or gay Center, it is the oldest LGBT community center in the Bay Area and the third oldest in the country. Will Roscoe campaigned successfully in 1976 for United Way membership for the Pacific Center, the first LGBT agency to achieve this. The Oakland-East Bay Gay Men's Chorus was founded under the auspices of the Pacific Cent in 1999 before becoming an independent organization. In 2001 the Pacific Center was involved in trying to help the city curb cruising for sex by men in Berkeley Aquatic Park by getting the city to set up a support network for men who have sex with men that do not identify as gay or bisexual. However, funding was never acquired. In 2002 the center was vandalised with anti-gay and neo-Nazi-themed tagging, considered a hate crime by the center. Flyers on the bulletin board at the entrance to the center were vandalized with the anti-gay slur "fag" and a swastika. When California legalized same-sex marriage in 2008, the youth group at the center marched around the neighborhood with the rainbow flag to celebrate the victory as the center was actively involved in campaigning for equal gay rights. Operations and location The center, along with Berkeley and the larger surrounding region is known for their eclecticism and liberalism and the Pacific Center is not different. In the past it has offered drag-quit smoking classes, transgender film screenings, and young queer women's groups among other unique initiatives. Today the center offers peer support groups alongside mental health counseling for LGBT people from the community. There is also a drop-in after school program for LGBT, Questioning, and Intersex youth. The center is located along the AC Transit 1R BRT line and is within walking distance of Ashby BART station. References External links Official website 1973 establishments in California Organizations based in Berkeley, California LGBT community centers in the United States LGBT in California Organizations established in 1973
```objective-c // // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #pragma once #include <memory> #include "paddle/phi/common/reduce_type.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/distributed/auto_parallel/dist_attr.h" #include "paddle/phi/core/distributed/auto_parallel/placement_types.h" #include "paddle/phi/core/distributed/auto_parallel/process_mesh.h" #include "paddle/phi/core/enforce.h" namespace phi { namespace distributed { class ReshardFunction; class Shard; class Partial; class Replicate; TensorDistAttr ToTensorDistAttr(const ProcessMesh& process_mesh, const Placements& placements, const DDim& dims); Placements ToPlacements(const TensorDistAttr& dist_attr); class DistTensor final : public phi::TensorBase, public phi::TypeInfoTraits<phi::TensorBase, DistTensor> { public: /// \brief Careful to create dist tensor using default constructor. /// this should only used in reshard for now, and the dist properties /// will be set by reshard later. DistTensor(); /// \brief Construct a dist tensor based dtype. /// \param dtype The dtype of the current tensor. explicit DistTensor(phi::DataType dtype); /// \brief Construct a dist tensor based dense tensor. /// \param global_value The global dense tensor of the current tensor. /// \param dist_attr The distributed attributes of the current tensor. DistTensor(const std::shared_ptr<phi::DenseTensor>& global_value, const TensorDistAttr& dist_attr); /// \brief Construct a dist tensor based dense tensor. /// \param process_mesh The process mesh of the current tensor. /// \param placements The distributed placements of the current tensor. DistTensor(const std::shared_ptr<phi::DenseTensor>& global_value, const ProcessMesh& process_mesh, const Placements& placements); /// \brief Construct a dist tensor based local dense tensor. /// \param global_dims The global dim of the dist tensor. /// \param dist_attr The distributed attributes of the current tensor. DistTensor(const std::shared_ptr<phi::DenseTensor>& local_value, const DDim& global_dims, const TensorDistAttr& dist_attr); /// \brief Construct a dist tensor based local dense tensor. /// \param global_dims The global dim of the dist tensor. /// \param process_mesh The process mesh of the current tensor. /// \param placements The distributed placements of the current tensor. DistTensor(const std::shared_ptr<phi::DenseTensor>& local_value, const DDim& global_dims, const ProcessMesh& process_mesh, const Placements& placements); /// \brief Construct a empty dist tensor (for infer spmd) /// \param dims The global dimension of the current Tensor. /// \param dist_attr The distributed attributes of the current tensor. DistTensor(const DDim& dims, const TensorDistAttr& dist_attr); /// \brief Destroy the tensor object and release exclusive resources. virtual ~DistTensor() = default; /// \brief Returns the name of the class for type traits. /// \return The name of the class. static const char* name() { return "DistTensor"; } /// \brief Returns the global dims of the dist tensor. /// \return The global dims of the dist tensor. const DDim& dims() const override { return global_dims_; } /// \brief Set the global dims of the dist tensor. /// \return void void unsafe_set_dims(const DDim& dims); /// \brief Returns the dist attr of current dist tensor. /// \return The TensorDistAttr's const reference const TensorDistAttr& dist_attr() const { return dist_attr_; } /// \brief Returns the process_mesh of current dist tensor. /// \return The ProcessMesh's const reference const ProcessMesh& process_mesh() const { return process_mesh_; } /// \brief Returns the placements of current dist tensor. /// \return The Placements's const reference const Placements& placements() const { return placements_; } /// \brief Returns the num_shard of current dist tensor. /// \return int64_t int64_t num_shard() const { int64_t num_shard = 1; const auto& mesh_shape = process_mesh_.shape(); for (size_t i = 0; i < placements_.size(); i++) { if (placements_[i]->is_shard()) { num_shard *= mesh_shape[i]; } } return num_shard; } /// \brief Set the dist attr of current dist tensor. /// \return void void unsafe_set_dist_attr(const TensorDistAttr& dist_attr); /// \brief Returns the dense tensor value's const reference in dist tensor. /// \return The DenseTensor value's const reference const DenseTensor& value() const { return *value_; } /// \brief Returns the shared_ptr of dense tensor value's in dist tensor. /// \return The shared_ptr of dense tensor value std::shared_ptr<DenseTensor> shared_value() { return value_; } /// \brief Returns the mutable dense tensor value in dist tensor. /// \note If DenseTensor value is modified externally, the corresponding /// relationship between it and the current tensor's global dims and /// dist attr may be destroyed, which may introduce some subtle bugs, /// so you need to make sure to consider it thoroughly when using /// this method. /// \return The mutable pointer of DenseTensor value DenseTensor* unsafe_mutable_value() { return value_.get(); } /// \brief Returns the global dims of the dist tensor. /// \return The global dims of the dist tensor. const DDim& local_dims() const; /// \brief Returns the global number of elements contained in tensor. /// \return The number of elements contained in tensor. int64_t numel() const override; /// \brief Test whether the dense tensor value's storage is allocated. /// \return Whether the dense tensor value's storage is allocated. bool initialized() const override; /// \brief Test whether the dense tensor value is defined. /// \return Whether the dense tensor value is defined. bool defined() const; /// \brief Test whether the metadata is valid. /// \return Whether the metadata is valid. bool valid() const override; /// \brief Returns the data type of the tensor. /// \return The data type of the tensor. DataType dtype() const override; /// \brief Returns the data layout of the tensor. /// \return The data layout of the tensor. DataLayout layout() const override; /// \brief Returns the data place of the tensor. /// \return The data place of the tensor. const Place& place() const override; /// \brief Allocate memory with requested size from allocator. /// \return The mutable data pointer value of type T. void* AllocateFrom(Allocator* allocator, DataType dtype, size_t requested_size = 0, bool fake_alloc = false) override; /// \brief Set the flag indicating whether to skip checking the process mesh. /// \note Currently only used for the MoE apis, /// it receives the inputs with different process meshes and outputs the dist /// tensor with global process mesh. /// \return void void unsafe_set_skip_check_mesh(bool skip); bool skip_check_mesh() const { return dist_attr_.skip_check_mesh(); } void clear(); private: friend class ReshardFunction; // The global dimensions(shape), will move to DistTensorMeta DDim global_dims_; // The distributed attributes, will remove in the future TensorDistAttr dist_attr_; // The local DenseTensor value std::shared_ptr<DenseTensor> value_; ProcessMesh process_mesh_; Placements placements_; }; } // namespace distributed } // namespace phi ```
Worton is a civil parish in the West Oxfordshire district about south of Banbury, England. It was formed in 1932 by the merger of the parishes of Nether Worton and Over Worton, each of which is a small village. The main road between Deddington and Swerford is the parish's northern boundary. It was a turnpike road and is now the B4031. From there the parish extends to Worton Wood on its southern boundary. East–west the parish is nowhere more than wide. The 2011 Census recorded the population of Worton parish as 624. References External links Civil parishes in Oxfordshire West Oxfordshire District
```python # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # # path_to_url # # Unless required by applicable law or agreed to in writing, software # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. """Minimal example of how to read samples from a dataset generated by `generate_pycarbon_dataset.py` using tensorflow.""" from __future__ import print_function import argparse import jnius_config import tensorflow as tf from pycarbon.reader import make_reader from pycarbon.reader import make_tensor, make_dataset from pycarbon.tests import DEFAULT_CARBONSDK_PATH def tensorflow_hello_world(dataset_url='file:///tmp/carbon_pycarbon_dataset/'): # Example: tf_tensors will return tensors with dataset data with make_reader(dataset_url, is_batch=False) as reader: tensor = make_tensor(reader) with tf.Session() as sess: sample = sess.run(tensor) print(sample.id) with make_reader(dataset_url, is_batch=False) as reader: dataset = make_dataset(reader) iterator = dataset.make_one_shot_iterator() tensor = iterator.get_next() with tf.Session() as sess: sample = sess.run(tensor) print(sample.id) if __name__ == '__main__': parser = argparse.ArgumentParser(description='TensorFlow hello world') parser.add_argument('-c', '--carbon-sdk-path', type=str, default=DEFAULT_CARBONSDK_PATH, help='carbon sdk path') args = parser.parse_args() jnius_config.set_classpath(args.carbon_sdk_path) tensorflow_hello_world() ```
James Macartney (1692 – 24 March 1770) was an Irish politician. He was the only son of James Macartney (died 1727), judge of the Court of Common Pleas (Ireland), and his second wife Alice Cuffe, daughter of Sir James Cuffe (died 1678). Through his maternal grandmother Alice Aungier he was coheir to the Earl of Longford. Family He married Catherine, the third daughter of the eminent judge Thomas Coote and his third wife Anne Lovett, and niece of Richard Coote, 1st Earl of Bellomont. They had six children, two sons and four daughters, including : Francis Macartney MP, who died in 1759, before his father, without issue Coote, who died in 1748, without issue Martha, who married William Henry Lyttelton, 1st Baron Lyttelton and had issue, including George Lyttelton, 2nd Baron Lyttelton Frances Greville ( c.1724-1789), the poet and author of the "Prayer for Indifference"; she married the politician Fulke Greville and was the mother of four children, including the celebrated political hostess, Frances Anne Crewe and the theatre-manager Henry Francis Greville. Catherine died in 1731. Since both their sons had died before their father without issue, on James's death in 1770 his estates passed to his daughters and their children. Political career He sat in the House of Commons of Ireland from 1713 to 1760, as a Member of Parliament for Longford Borough from 1713 to 1727, and then for Granard from 1727 to 1760. References 1692 births 1770 deaths Irish MPs 1713–1714 Irish MPs 1715–1727 Irish MPs 1727–1760 Members of the Parliament of Ireland (pre-1801) for County Longford constituencies
```scss @import 'config/import'; .rich-selector { background: var(--card-secondary-bg); border-radius: var(--radius); border: 1px solid var(--base-10); // todo replace with functional variable padding: var(--su-4); cursor: pointer; } // Font styles .font-selector--serif { font-family: var(--ff-serif); } .font-selector--sans-serif { font-family: var(--ff-sans-serif); } .font-selector--monospace { font-family: var(--ff-monospace); } .font-selector--comic-sans { font-family: var(--ff-comic); } .font-selector--open-dyslexic { font-family: var(--ff-dyslexic); font-display: swap; } // Theme styles // Theme selector .theme-preview { width: 100%; border-radius: var(--radius); background: var(--preview-body-bg); color: var(--preview-body-color); overflow: hidden; font-size: var(--fs-s); line-height: 1; box-shadow: 0 0 0 1px var(--header-shadow); &, & *, & * * { box-sizing: border-box; } &__nav { display: flex; justify-content: space-around; align-items: center; height: var(--su-4); background: var(--preview-header); box-shadow: 0 1px 1px var(--preview-border); } &__search { width: 33%; height: var(--su-2); background: var(--preview-form); border-radius: 1px; } &__main { display: grid; grid-gap: var(--su-1); grid-template-columns: 20% 1fr 20%; height: var(--su-9); padding: var(--su-1); text-align: center; } &__middle { display: flex; flex-direction: column; } &__card { background: var(--preview-card); border-radius: 1px; display: flex; flex: 1 auto; box-shadow: 0 0 0 1px var(--preview-border); } } .theme-selector--light-theme { --preview-body-bg: #f9f9fa; --preview-body-color: #0a0a0a; --preview-header: #fdf9f3; --preview-form: #e8e7e7; --preview-card: #fff; --preview-border: rgba(0, 0, 0, 0.1); } .theme-selector--dark-theme { --preview-body-bg: #0d1219; --preview-body-color: #fff; --preview-header: #1c2938; --preview-form: #424a54; --preview-card: #202c3d; --preview-border: rgba(0, 0, 0, 0.1); } .rich-selector-radio { overflow: hidden; position: absolute; opacity: 0; left: -9999em; &:checked + .rich-selector--experience { border-color: var(--accent-brand); box-shadow: 0 0 0 1px var(--accent-brand); } } ```
```go // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package opensearchserverlessiface provides an interface to enable mocking the OpenSearch Service Serverless service client // for testing your code. // // It is important to note that this interface will have breaking changes // when the service model is updated and adds new API operations, paginators, // and waiters. package opensearchserverlessiface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/opensearchserverless" ) // OpenSearchServerlessAPI provides an interface to enable mocking the // opensearchserverless.OpenSearchServerless service client's API operation, // paginators, and waiters. This make unit testing your code that calls out // to the SDK's service client's calls easier. // // The best way to use this interface is so the SDK's service client's calls // can be stubbed out for unit testing your code with the SDK without needing // to inject custom request handlers into the SDK's request pipeline. // // // myFunc uses an SDK service client to make a request to // // OpenSearch Service Serverless. // func myFunc(svc opensearchserverlessiface.OpenSearchServerlessAPI) bool { // // Make svc.BatchGetCollection request // } // // func main() { // sess := session.New() // svc := opensearchserverless.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockOpenSearchServerlessClient struct { // opensearchserverlessiface.OpenSearchServerlessAPI // } // func (m *mockOpenSearchServerlessClient) BatchGetCollection(input *opensearchserverless.BatchGetCollectionInput) (*opensearchserverless.BatchGetCollectionOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockOpenSearchServerlessClient{} // // myfunc(mockSvc) // // // Verify myFunc's functionality // } // // It is important to note that this interface will have breaking changes // when the service model is updated and adds new API operations, paginators, // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type OpenSearchServerlessAPI interface { BatchGetCollection(*opensearchserverless.BatchGetCollectionInput) (*opensearchserverless.BatchGetCollectionOutput, error) BatchGetCollectionWithContext(aws.Context, *opensearchserverless.BatchGetCollectionInput, ...request.Option) (*opensearchserverless.BatchGetCollectionOutput, error) BatchGetCollectionRequest(*opensearchserverless.BatchGetCollectionInput) (*request.Request, *opensearchserverless.BatchGetCollectionOutput) BatchGetEffectiveLifecyclePolicy(*opensearchserverless.BatchGetEffectiveLifecyclePolicyInput) (*opensearchserverless.BatchGetEffectiveLifecyclePolicyOutput, error) BatchGetEffectiveLifecyclePolicyWithContext(aws.Context, *opensearchserverless.BatchGetEffectiveLifecyclePolicyInput, ...request.Option) (*opensearchserverless.BatchGetEffectiveLifecyclePolicyOutput, error) BatchGetEffectiveLifecyclePolicyRequest(*opensearchserverless.BatchGetEffectiveLifecyclePolicyInput) (*request.Request, *opensearchserverless.BatchGetEffectiveLifecyclePolicyOutput) BatchGetLifecyclePolicy(*opensearchserverless.BatchGetLifecyclePolicyInput) (*opensearchserverless.BatchGetLifecyclePolicyOutput, error) BatchGetLifecyclePolicyWithContext(aws.Context, *opensearchserverless.BatchGetLifecyclePolicyInput, ...request.Option) (*opensearchserverless.BatchGetLifecyclePolicyOutput, error) BatchGetLifecyclePolicyRequest(*opensearchserverless.BatchGetLifecyclePolicyInput) (*request.Request, *opensearchserverless.BatchGetLifecyclePolicyOutput) BatchGetVpcEndpoint(*opensearchserverless.BatchGetVpcEndpointInput) (*opensearchserverless.BatchGetVpcEndpointOutput, error) BatchGetVpcEndpointWithContext(aws.Context, *opensearchserverless.BatchGetVpcEndpointInput, ...request.Option) (*opensearchserverless.BatchGetVpcEndpointOutput, error) BatchGetVpcEndpointRequest(*opensearchserverless.BatchGetVpcEndpointInput) (*request.Request, *opensearchserverless.BatchGetVpcEndpointOutput) CreateAccessPolicy(*opensearchserverless.CreateAccessPolicyInput) (*opensearchserverless.CreateAccessPolicyOutput, error) CreateAccessPolicyWithContext(aws.Context, *opensearchserverless.CreateAccessPolicyInput, ...request.Option) (*opensearchserverless.CreateAccessPolicyOutput, error) CreateAccessPolicyRequest(*opensearchserverless.CreateAccessPolicyInput) (*request.Request, *opensearchserverless.CreateAccessPolicyOutput) CreateCollection(*opensearchserverless.CreateCollectionInput) (*opensearchserverless.CreateCollectionOutput, error) CreateCollectionWithContext(aws.Context, *opensearchserverless.CreateCollectionInput, ...request.Option) (*opensearchserverless.CreateCollectionOutput, error) CreateCollectionRequest(*opensearchserverless.CreateCollectionInput) (*request.Request, *opensearchserverless.CreateCollectionOutput) CreateLifecyclePolicy(*opensearchserverless.CreateLifecyclePolicyInput) (*opensearchserverless.CreateLifecyclePolicyOutput, error) CreateLifecyclePolicyWithContext(aws.Context, *opensearchserverless.CreateLifecyclePolicyInput, ...request.Option) (*opensearchserverless.CreateLifecyclePolicyOutput, error) CreateLifecyclePolicyRequest(*opensearchserverless.CreateLifecyclePolicyInput) (*request.Request, *opensearchserverless.CreateLifecyclePolicyOutput) CreateSecurityConfig(*opensearchserverless.CreateSecurityConfigInput) (*opensearchserverless.CreateSecurityConfigOutput, error) CreateSecurityConfigWithContext(aws.Context, *opensearchserverless.CreateSecurityConfigInput, ...request.Option) (*opensearchserverless.CreateSecurityConfigOutput, error) CreateSecurityConfigRequest(*opensearchserverless.CreateSecurityConfigInput) (*request.Request, *opensearchserverless.CreateSecurityConfigOutput) CreateSecurityPolicy(*opensearchserverless.CreateSecurityPolicyInput) (*opensearchserverless.CreateSecurityPolicyOutput, error) CreateSecurityPolicyWithContext(aws.Context, *opensearchserverless.CreateSecurityPolicyInput, ...request.Option) (*opensearchserverless.CreateSecurityPolicyOutput, error) CreateSecurityPolicyRequest(*opensearchserverless.CreateSecurityPolicyInput) (*request.Request, *opensearchserverless.CreateSecurityPolicyOutput) CreateVpcEndpoint(*opensearchserverless.CreateVpcEndpointInput) (*opensearchserverless.CreateVpcEndpointOutput, error) CreateVpcEndpointWithContext(aws.Context, *opensearchserverless.CreateVpcEndpointInput, ...request.Option) (*opensearchserverless.CreateVpcEndpointOutput, error) CreateVpcEndpointRequest(*opensearchserverless.CreateVpcEndpointInput) (*request.Request, *opensearchserverless.CreateVpcEndpointOutput) DeleteAccessPolicy(*opensearchserverless.DeleteAccessPolicyInput) (*opensearchserverless.DeleteAccessPolicyOutput, error) DeleteAccessPolicyWithContext(aws.Context, *opensearchserverless.DeleteAccessPolicyInput, ...request.Option) (*opensearchserverless.DeleteAccessPolicyOutput, error) DeleteAccessPolicyRequest(*opensearchserverless.DeleteAccessPolicyInput) (*request.Request, *opensearchserverless.DeleteAccessPolicyOutput) DeleteCollection(*opensearchserverless.DeleteCollectionInput) (*opensearchserverless.DeleteCollectionOutput, error) DeleteCollectionWithContext(aws.Context, *opensearchserverless.DeleteCollectionInput, ...request.Option) (*opensearchserverless.DeleteCollectionOutput, error) DeleteCollectionRequest(*opensearchserverless.DeleteCollectionInput) (*request.Request, *opensearchserverless.DeleteCollectionOutput) DeleteLifecyclePolicy(*opensearchserverless.DeleteLifecyclePolicyInput) (*opensearchserverless.DeleteLifecyclePolicyOutput, error) DeleteLifecyclePolicyWithContext(aws.Context, *opensearchserverless.DeleteLifecyclePolicyInput, ...request.Option) (*opensearchserverless.DeleteLifecyclePolicyOutput, error) DeleteLifecyclePolicyRequest(*opensearchserverless.DeleteLifecyclePolicyInput) (*request.Request, *opensearchserverless.DeleteLifecyclePolicyOutput) DeleteSecurityConfig(*opensearchserverless.DeleteSecurityConfigInput) (*opensearchserverless.DeleteSecurityConfigOutput, error) DeleteSecurityConfigWithContext(aws.Context, *opensearchserverless.DeleteSecurityConfigInput, ...request.Option) (*opensearchserverless.DeleteSecurityConfigOutput, error) DeleteSecurityConfigRequest(*opensearchserverless.DeleteSecurityConfigInput) (*request.Request, *opensearchserverless.DeleteSecurityConfigOutput) DeleteSecurityPolicy(*opensearchserverless.DeleteSecurityPolicyInput) (*opensearchserverless.DeleteSecurityPolicyOutput, error) DeleteSecurityPolicyWithContext(aws.Context, *opensearchserverless.DeleteSecurityPolicyInput, ...request.Option) (*opensearchserverless.DeleteSecurityPolicyOutput, error) DeleteSecurityPolicyRequest(*opensearchserverless.DeleteSecurityPolicyInput) (*request.Request, *opensearchserverless.DeleteSecurityPolicyOutput) DeleteVpcEndpoint(*opensearchserverless.DeleteVpcEndpointInput) (*opensearchserverless.DeleteVpcEndpointOutput, error) DeleteVpcEndpointWithContext(aws.Context, *opensearchserverless.DeleteVpcEndpointInput, ...request.Option) (*opensearchserverless.DeleteVpcEndpointOutput, error) DeleteVpcEndpointRequest(*opensearchserverless.DeleteVpcEndpointInput) (*request.Request, *opensearchserverless.DeleteVpcEndpointOutput) GetAccessPolicy(*opensearchserverless.GetAccessPolicyInput) (*opensearchserverless.GetAccessPolicyOutput, error) GetAccessPolicyWithContext(aws.Context, *opensearchserverless.GetAccessPolicyInput, ...request.Option) (*opensearchserverless.GetAccessPolicyOutput, error) GetAccessPolicyRequest(*opensearchserverless.GetAccessPolicyInput) (*request.Request, *opensearchserverless.GetAccessPolicyOutput) GetAccountSettings(*opensearchserverless.GetAccountSettingsInput) (*opensearchserverless.GetAccountSettingsOutput, error) GetAccountSettingsWithContext(aws.Context, *opensearchserverless.GetAccountSettingsInput, ...request.Option) (*opensearchserverless.GetAccountSettingsOutput, error) GetAccountSettingsRequest(*opensearchserverless.GetAccountSettingsInput) (*request.Request, *opensearchserverless.GetAccountSettingsOutput) GetPoliciesStats(*opensearchserverless.GetPoliciesStatsInput) (*opensearchserverless.GetPoliciesStatsOutput, error) GetPoliciesStatsWithContext(aws.Context, *opensearchserverless.GetPoliciesStatsInput, ...request.Option) (*opensearchserverless.GetPoliciesStatsOutput, error) GetPoliciesStatsRequest(*opensearchserverless.GetPoliciesStatsInput) (*request.Request, *opensearchserverless.GetPoliciesStatsOutput) GetSecurityConfig(*opensearchserverless.GetSecurityConfigInput) (*opensearchserverless.GetSecurityConfigOutput, error) GetSecurityConfigWithContext(aws.Context, *opensearchserverless.GetSecurityConfigInput, ...request.Option) (*opensearchserverless.GetSecurityConfigOutput, error) GetSecurityConfigRequest(*opensearchserverless.GetSecurityConfigInput) (*request.Request, *opensearchserverless.GetSecurityConfigOutput) GetSecurityPolicy(*opensearchserverless.GetSecurityPolicyInput) (*opensearchserverless.GetSecurityPolicyOutput, error) GetSecurityPolicyWithContext(aws.Context, *opensearchserverless.GetSecurityPolicyInput, ...request.Option) (*opensearchserverless.GetSecurityPolicyOutput, error) GetSecurityPolicyRequest(*opensearchserverless.GetSecurityPolicyInput) (*request.Request, *opensearchserverless.GetSecurityPolicyOutput) ListAccessPolicies(*opensearchserverless.ListAccessPoliciesInput) (*opensearchserverless.ListAccessPoliciesOutput, error) ListAccessPoliciesWithContext(aws.Context, *opensearchserverless.ListAccessPoliciesInput, ...request.Option) (*opensearchserverless.ListAccessPoliciesOutput, error) ListAccessPoliciesRequest(*opensearchserverless.ListAccessPoliciesInput) (*request.Request, *opensearchserverless.ListAccessPoliciesOutput) ListAccessPoliciesPages(*opensearchserverless.ListAccessPoliciesInput, func(*opensearchserverless.ListAccessPoliciesOutput, bool) bool) error ListAccessPoliciesPagesWithContext(aws.Context, *opensearchserverless.ListAccessPoliciesInput, func(*opensearchserverless.ListAccessPoliciesOutput, bool) bool, ...request.Option) error ListCollections(*opensearchserverless.ListCollectionsInput) (*opensearchserverless.ListCollectionsOutput, error) ListCollectionsWithContext(aws.Context, *opensearchserverless.ListCollectionsInput, ...request.Option) (*opensearchserverless.ListCollectionsOutput, error) ListCollectionsRequest(*opensearchserverless.ListCollectionsInput) (*request.Request, *opensearchserverless.ListCollectionsOutput) ListCollectionsPages(*opensearchserverless.ListCollectionsInput, func(*opensearchserverless.ListCollectionsOutput, bool) bool) error ListCollectionsPagesWithContext(aws.Context, *opensearchserverless.ListCollectionsInput, func(*opensearchserverless.ListCollectionsOutput, bool) bool, ...request.Option) error ListLifecyclePolicies(*opensearchserverless.ListLifecyclePoliciesInput) (*opensearchserverless.ListLifecyclePoliciesOutput, error) ListLifecyclePoliciesWithContext(aws.Context, *opensearchserverless.ListLifecyclePoliciesInput, ...request.Option) (*opensearchserverless.ListLifecyclePoliciesOutput, error) ListLifecyclePoliciesRequest(*opensearchserverless.ListLifecyclePoliciesInput) (*request.Request, *opensearchserverless.ListLifecyclePoliciesOutput) ListLifecyclePoliciesPages(*opensearchserverless.ListLifecyclePoliciesInput, func(*opensearchserverless.ListLifecyclePoliciesOutput, bool) bool) error ListLifecyclePoliciesPagesWithContext(aws.Context, *opensearchserverless.ListLifecyclePoliciesInput, func(*opensearchserverless.ListLifecyclePoliciesOutput, bool) bool, ...request.Option) error ListSecurityConfigs(*opensearchserverless.ListSecurityConfigsInput) (*opensearchserverless.ListSecurityConfigsOutput, error) ListSecurityConfigsWithContext(aws.Context, *opensearchserverless.ListSecurityConfigsInput, ...request.Option) (*opensearchserverless.ListSecurityConfigsOutput, error) ListSecurityConfigsRequest(*opensearchserverless.ListSecurityConfigsInput) (*request.Request, *opensearchserverless.ListSecurityConfigsOutput) ListSecurityConfigsPages(*opensearchserverless.ListSecurityConfigsInput, func(*opensearchserverless.ListSecurityConfigsOutput, bool) bool) error ListSecurityConfigsPagesWithContext(aws.Context, *opensearchserverless.ListSecurityConfigsInput, func(*opensearchserverless.ListSecurityConfigsOutput, bool) bool, ...request.Option) error ListSecurityPolicies(*opensearchserverless.ListSecurityPoliciesInput) (*opensearchserverless.ListSecurityPoliciesOutput, error) ListSecurityPoliciesWithContext(aws.Context, *opensearchserverless.ListSecurityPoliciesInput, ...request.Option) (*opensearchserverless.ListSecurityPoliciesOutput, error) ListSecurityPoliciesRequest(*opensearchserverless.ListSecurityPoliciesInput) (*request.Request, *opensearchserverless.ListSecurityPoliciesOutput) ListSecurityPoliciesPages(*opensearchserverless.ListSecurityPoliciesInput, func(*opensearchserverless.ListSecurityPoliciesOutput, bool) bool) error ListSecurityPoliciesPagesWithContext(aws.Context, *opensearchserverless.ListSecurityPoliciesInput, func(*opensearchserverless.ListSecurityPoliciesOutput, bool) bool, ...request.Option) error ListTagsForResource(*opensearchserverless.ListTagsForResourceInput) (*opensearchserverless.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *opensearchserverless.ListTagsForResourceInput, ...request.Option) (*opensearchserverless.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*opensearchserverless.ListTagsForResourceInput) (*request.Request, *opensearchserverless.ListTagsForResourceOutput) ListVpcEndpoints(*opensearchserverless.ListVpcEndpointsInput) (*opensearchserverless.ListVpcEndpointsOutput, error) ListVpcEndpointsWithContext(aws.Context, *opensearchserverless.ListVpcEndpointsInput, ...request.Option) (*opensearchserverless.ListVpcEndpointsOutput, error) ListVpcEndpointsRequest(*opensearchserverless.ListVpcEndpointsInput) (*request.Request, *opensearchserverless.ListVpcEndpointsOutput) ListVpcEndpointsPages(*opensearchserverless.ListVpcEndpointsInput, func(*opensearchserverless.ListVpcEndpointsOutput, bool) bool) error ListVpcEndpointsPagesWithContext(aws.Context, *opensearchserverless.ListVpcEndpointsInput, func(*opensearchserverless.ListVpcEndpointsOutput, bool) bool, ...request.Option) error TagResource(*opensearchserverless.TagResourceInput) (*opensearchserverless.TagResourceOutput, error) TagResourceWithContext(aws.Context, *opensearchserverless.TagResourceInput, ...request.Option) (*opensearchserverless.TagResourceOutput, error) TagResourceRequest(*opensearchserverless.TagResourceInput) (*request.Request, *opensearchserverless.TagResourceOutput) UntagResource(*opensearchserverless.UntagResourceInput) (*opensearchserverless.UntagResourceOutput, error) UntagResourceWithContext(aws.Context, *opensearchserverless.UntagResourceInput, ...request.Option) (*opensearchserverless.UntagResourceOutput, error) UntagResourceRequest(*opensearchserverless.UntagResourceInput) (*request.Request, *opensearchserverless.UntagResourceOutput) UpdateAccessPolicy(*opensearchserverless.UpdateAccessPolicyInput) (*opensearchserverless.UpdateAccessPolicyOutput, error) UpdateAccessPolicyWithContext(aws.Context, *opensearchserverless.UpdateAccessPolicyInput, ...request.Option) (*opensearchserverless.UpdateAccessPolicyOutput, error) UpdateAccessPolicyRequest(*opensearchserverless.UpdateAccessPolicyInput) (*request.Request, *opensearchserverless.UpdateAccessPolicyOutput) UpdateAccountSettings(*opensearchserverless.UpdateAccountSettingsInput) (*opensearchserverless.UpdateAccountSettingsOutput, error) UpdateAccountSettingsWithContext(aws.Context, *opensearchserverless.UpdateAccountSettingsInput, ...request.Option) (*opensearchserverless.UpdateAccountSettingsOutput, error) UpdateAccountSettingsRequest(*opensearchserverless.UpdateAccountSettingsInput) (*request.Request, *opensearchserverless.UpdateAccountSettingsOutput) UpdateCollection(*opensearchserverless.UpdateCollectionInput) (*opensearchserverless.UpdateCollectionOutput, error) UpdateCollectionWithContext(aws.Context, *opensearchserverless.UpdateCollectionInput, ...request.Option) (*opensearchserverless.UpdateCollectionOutput, error) UpdateCollectionRequest(*opensearchserverless.UpdateCollectionInput) (*request.Request, *opensearchserverless.UpdateCollectionOutput) UpdateLifecyclePolicy(*opensearchserverless.UpdateLifecyclePolicyInput) (*opensearchserverless.UpdateLifecyclePolicyOutput, error) UpdateLifecyclePolicyWithContext(aws.Context, *opensearchserverless.UpdateLifecyclePolicyInput, ...request.Option) (*opensearchserverless.UpdateLifecyclePolicyOutput, error) UpdateLifecyclePolicyRequest(*opensearchserverless.UpdateLifecyclePolicyInput) (*request.Request, *opensearchserverless.UpdateLifecyclePolicyOutput) UpdateSecurityConfig(*opensearchserverless.UpdateSecurityConfigInput) (*opensearchserverless.UpdateSecurityConfigOutput, error) UpdateSecurityConfigWithContext(aws.Context, *opensearchserverless.UpdateSecurityConfigInput, ...request.Option) (*opensearchserverless.UpdateSecurityConfigOutput, error) UpdateSecurityConfigRequest(*opensearchserverless.UpdateSecurityConfigInput) (*request.Request, *opensearchserverless.UpdateSecurityConfigOutput) UpdateSecurityPolicy(*opensearchserverless.UpdateSecurityPolicyInput) (*opensearchserverless.UpdateSecurityPolicyOutput, error) UpdateSecurityPolicyWithContext(aws.Context, *opensearchserverless.UpdateSecurityPolicyInput, ...request.Option) (*opensearchserverless.UpdateSecurityPolicyOutput, error) UpdateSecurityPolicyRequest(*opensearchserverless.UpdateSecurityPolicyInput) (*request.Request, *opensearchserverless.UpdateSecurityPolicyOutput) UpdateVpcEndpoint(*opensearchserverless.UpdateVpcEndpointInput) (*opensearchserverless.UpdateVpcEndpointOutput, error) UpdateVpcEndpointWithContext(aws.Context, *opensearchserverless.UpdateVpcEndpointInput, ...request.Option) (*opensearchserverless.UpdateVpcEndpointOutput, error) UpdateVpcEndpointRequest(*opensearchserverless.UpdateVpcEndpointInput) (*request.Request, *opensearchserverless.UpdateVpcEndpointOutput) } var _ OpenSearchServerlessAPI = (*opensearchserverless.OpenSearchServerless)(nil) ```
```css .logo { display: inline; max-height: 55px; max-width: min(100%, 230px); } .collapseBtn:hover { background-color: var(--bg-btn-default-hover-color); } ```
A hybrid solar eclipse occurred on June 17, 1909. A solar eclipse occurs when the Moon passes between Earth and the Sun, thereby totally or partly obscuring the image of the Sun for a viewer on Earth. A total solar eclipse occurs when the Moon's apparent diameter is larger than the Sun's, blocking all direct sunlight, turning day into darkness. Totality occurs in a narrow path across Earth's surface, with the partial solar eclipse visible over a surrounding region thousands of kilometres wide. This event was a hybrid, starting and ending as an annular eclipse. The path of totality crossed central Russia, the Arctic Ocean, northeastern Ellesmere Island in Canada, Greenland, and annularity crossed southern Siberia in Russia (now in northeastern Kazakhstan and southern Russia) and southern Greenland. Related eclipses Solar eclipses 1906–1909 External links 1909 06 17 1909 06 17 1909 in science June 1909 events
Sture Henriksson (1917–1957) was a Swedish trade unionist, ombudsman and social democrat politician who killed himself in 1957 while serving as the minister of communications. Biography Henriksson was a trade unionist. He worked as an ombudsman in Civilian Personnel Association of the Swedish Armed Forces. He was a member of the Social Democratic Party and served at the Swedish Parliament. In 1949 he was one of the members of the tax commission at the Parliament. He edited the monthly journal of the Social Democratic Party entitled Tiden between 1956 and 1957. Henriksson was appointed minister of communication to the cabinet led by Prime Minister Tage Erlander 1957. Shortly after his appointment Henriksson committed suicide by hanging himself. The event occurred after Henriksson was arrested for drunkenness. His colleague Östen Undén later accused a journalist in Expressen of his death. References 20th-century Swedish journalists 1917 births 1957 suicides Members of the Riksdag from the Social Democrats Politicians who died by suicide Swedish Ministers for Communications Swedish magazine editors Ombudsmen in Sweden Suicides by hanging in Sweden Swedish trade unionists
Gwynfor James Williams (born 1 February 1956) is a former rugby union player. He played at scrum half or centre but club appearances for Cardiff RFC were limited by the presence of Gareth Edwards and Williams' older brother, Brynmor Williams. Williams was considered a great prospect but injuries hampered his development and progress. Having played for Newport RFC, Cardiff RFC and Cross Keys RFC, he played for his home-town club Cardigan RFC before finishing his career at Aberystwyth RFC. In the 1981 Snelling Sevens Championship, he was awarded the Everson Award. Notes 1956 births Living people Aberystwyth RFC players Cardiff RFC players Cross Keys RFC players Newport RFC players Rugby union players from Neath Welsh rugby union players Rugby union centres
Bosmansdam High School (Afrikaans: Hoërskool Bosmansdam) is a public English & Afrikaans medium co-educational high school. It was founded in 1971 in Bothasig, a suburb of Cape Town. The school is state assisted and therefore, like most other schools in South Africa, it charges a set amount of money for its services. The school offers a wide variety of sporting and cultural activities in addition to its academic program. History Bothasig and Bosmansdam High School are both located on what was originally the farm, Bosmansdam. Part of the land was taken over by the Milnerton Municipality between 1961 and 1989. Bosmansdam was renamed Bothasig ("Botha's Vision") after the then Minister of Housing (and later State President), Mr. P.W. Botha, presented a house to the first resident. The town grew rapidly and it soon became clear that there was a need for a high school. The first staff consisted of only seven members. The first school committee was elected on 17 March 1971 under chairmanship of Mr. M.J. v.N. van Schoor. Initially the school motto was UNITAS but changed to UNITATE FORTIOR (stronger through unity). The school colours were also different at first with blue, orange and white making way in 1982 for blue, red and gold. The official emblem and tie were adopted in 1989. The school song was composed by the well-known Dirkie de Villiers with lyrics by his wife Doll. 1980 saw the first appearance of VOX (voice), the school paper. Academics Bosmansdam currently offers a wide variety of subjects to its students. Bosmansdam is a dual-medium school which makes English and Afrikaans the languages of instruction. This also means that the subjects of English and Afrikaans (one to be taken as Home Language and the other as First Additional Language) is compulsory. Unfortunately this means learners who cannot understand instruction in these languages and/or are unable to take one of these subjects cannot be accommodated. Immigrants may apply for exemption from Afrikaans. In this case another subject should be taken as extra subject in the place of Afrikaans. Juniors: At Grade 8 and 9 level all the required learning areas are covered. This includes: English (Home and Additional Language). Afrikaans (Home and Additional Language). Mathematics. Natural Science. Economic Management Sciences (EMS), Human and Social Sciences (History and Geography). Arts and Culture. Technology. Life Orientation. The subject of Design is also offered to Grade 8's and 9's in which computer and internet skills are taught with a focus on Google Apps and its many uses. Seniors: From Grade 10 to 12, students are provided with a wide variety of subject choices. English (Home or Additional Language), Afrikaans (Home or Additional Language) and Life Orientation are compulsory subjects. Students may then choose between Mathematics and Mathematical Literacy. The remaining subjects are divided into three groups. Students must choose one subject from each group. The exact structure of these groups differ from year to year to match student demand, but the following subjects are offered: Accounting. Tourism Life Sciences (Biology) Business Studies Physical Science Computer Applications Studies (CAT) Economics History Consumer Studies. Some of these subjects can also be taken as extra subjects. Bosmansdam has in the recent past been able boast a Matric Pass rate of between 97% and 100% with overall results comparable to neighbouring schools. In 2011 Bosmansdam achieved a 100% matric pass rate with a very high percentage of students qualifying for admission to bachelor's degree study and the school followed this up with a 99.23% pass rate in 2012. The 100% target was once again achieved in 2013. Bosmansdam achieved a 98% matric pass rate in 2014 despite this being the first year in which it was possible for a learner to be progressed to Grade 12 without passing Grade 11. In 2015, the school once again achieved a 98.63% matric pass rate. Bosmansdam's results therefore comfortably surpassed that of many of its neighbours. A highly qualified and motivated staff is largely to thank for this. Sport Bosmansdam offers a variety of sports to its students. Summer sports offered: For Girls: Tennis, Softball, Athletics, Action Netball, Action Hockey. For Boys: Tennis, Cricket, Athletics, Touch rugby, Action Soccer. Winter sports offered: For Girls: Netball, Field Hockey. For Boys: Rugby. Chess is also a very successful sport at Bosmansdam. Former student, Clarke Tieties attained Western Province colours in 2010 with Shane Klaase and Joshua Raynard following suit in 2015. As a smaller school, Bosmansdam struggles to compete against the larger and wealthier schools in the Western Cape but within its various leagues, the school is very competitive. The school has achieved some success on the rugby field. The 1st XV competes successfully against the likes of President High School, Table View High School, The Settlers High School and J.G. Meiring High School. 2011 saw the 1st XV losing only one league game against a very strong side from President High School. Bosmansdam however beat President in 2012, which was another highly successful season. The 2012 side also managed a draw against Interschools rivals, Labori, in Paarl. This was the best Interschools result away from home ever. 2013 and 2014 had some mixed results although the win ratio was well above 70%. 2015 and 2016 have been average seasons, but a promising group of junior players augers well for the future. The u/19B team also went unbeaten in 2014 – a testament to the depth of rugby talent at Bosmansdam. 2015 also saw the launch of the Knights concept at Bosmansdam. This resulted in the 1st XV being renamed the "REMAX Knights" thanks to a generous new sponsorship. Bosmansdam's Netball girls are also always competitive with senior teams often ending in the top 3 in their zone over recent years. A number of players have achieved Western Province and even Western Cape colours. The 2016 team contains three Western Province and two Western Cape players – a fantastic achievement. Other girls have also received Western Province colours for Action Netball. Netball has been the most successful sport for Bosmansdam at Interschools in recent years. 2017 will see the launch of the "Bosmansdam Netball Academy" where talented players will be drafted into the 1st team training squad regardless of their age group in order to better develop their skills. The academy will be led by Mrs. Tanja Vermeulen, who is herself a former provincial Netball player. Hockey is a relatively new sport at Bosmansdam but player numbers are growing rapidly and results are slowly improving as the school establishes itself. Hockey is however currently only offered for girls due to a lack of demand among the boys. The well-known nearby Bothasig Baseball Club and the results of Bosmansdam's Softball sides seem to indicate a natural aptitude for the sport in the Bothasig area! The girls Softball sides have been going since 2011 and met with immediate success. A number of girls have been selected for the Western Province Northern Zone team. Former Bosmansdam student and former South African Baseball player (and now a teacher at the school), J.P. Norman, has taken on the coaching role. Soccer is however not offered due to a lack of facilities and coaches. Priority is afforded to the traditional sports of the school. Learners are allowed to join the nearby Bothasig Soccer Club as long as it does not interfere with school commitments. The highly successful club's senior teams contain many Bosmansdam students. Interschools As with most schools in South Africa, the culmination of the sporting year is the highly anticipated event known as Interschools. The entire event spans a week in which the school competes against Labori High School (based in Paarl) in a variety of sports and cultural pursuits. 2016 is the 16th year that Bosmansdam and Labori have been interschool rivals. Debating and chess matches take place during the week. On the Saturday, the other winter sports are decided. Initially the much older Labori with its boarding facilities dominated Interschools with a number of years seeing serious losses on Bosmansdam's side. The tide does appear to be turning as scores are becoming closer and closer. Especially on the netball courts Bosmansdam has been dominating in recent years. Interschools is traditionally decided by the winner of the 1st XV rugby match and on this count Labori have won 10 times and Bosmansdam 4 with one draw. 2011 saw Labori beating Bosmansdam by 1 point in the final seconds. In 2012 however Bosmansdam managed to secure a 17–17 draw in Paarl in shocking weather conditions against a supposedly much stronger side. This was Bosmansdam's best Interschools result away from home ever. Bosmansdam came close again in 2013 but were unable to convert pressure into points and eventually lost. 2014 saw Labori go unbeaten in their most successful season ever and Bosmansdam were rank underdogs. The Bossies showed spirit however and were in the game until the very end before Labori's much vaunted "dream team" finally put them away. 2015 saw the Labori "dream team" reach maturity and the results were one that Bosmansdam would like to forget. 2016 should be much closer though as Bosmansdam has steadily improved over the past 16 years and the one-sided Interschools of the past seem to be over. Apart from Interschools, Bosmansdam also has many other derby days. These include derbies against President High School and close neighbours and fierce rivals, Edgemead High School. The rivalry against Edgemead is especially intense thanks to the close proximity as well as the connection between the two communities. The two schools are also rivals for admissions and good sports results are vital. Having Interschools contested between the two neighbouring schools could be considered in the future as it would make very good sense. This will however not be done at the expense of the good relationship with Labori. Technology Bosmansdam has in recent years shifted its focus to the extensive use of technology. This focus is not only with the intention of improving the quality of education for its learners, but also to properly prepare them for the modern work environment. Bosmansdam is an accredited Google Apps for Education school. School fees and donations have been well used in recent years to improve the technology on offer in the school. All teachers now have Chromebooks (Google-based laptops), data projectors and Wi-Fi internet access at their disposal. The administration of the school is also slowly but surely becoming cloud-based as the school attempts to embrace an eco-friendly culture. Regular training sessions are offered to the teachers to enable them to make full use of the benefits that Google Apps for education holds. All learners are given their own e-mail addresses and are able to communicate with the teachers and also gain access to cloud-based notes and other resources by means of Google Classrooms. Learners also have access to three computer labs which enables them to do research and complete tasks. Bosmansdam has managed to establish itself as leader in the field of technology among public schools in its area. Admission Bosmansdam High School is situated in Bothasig which is part of the urban sprawl of the Northern Suburbs of Cape Town. This means that students are no longer drawn solely from the surrounding community. All schools have been allocated "feeder areas". These are the areas the school is supposed to serve. Any applicants from within this area must be admitted to the school regardless of their ability to pay school fees. As with most schools, Bosmansdam struggles with a large number of parents who do not or cannot pay school fees. Another problem faced is that many residents of the feeder area have in recent years sent their children to neighbouring schools. This forces the school to admit children from outside the feeder area. There is now a renewed focus to entrench Bosmansdam's role as an integral part of Bothasig and its community. Although not a policy of the school, it is clear that the school is in a rivalry with neighbours such as Edgemead High School and Tygerberg High School. The school has in recent years achieved academic results comparable with these schools and in some cases has surpassed them. Recent demographic trends have placed Bosmansdam in a rather unusual situation. Recent history has seen the numbers of Afrikaans speaking learners in areas such as Table View (including Parklands and other areas), Milnerton and even Bothasig slowly decline. This has led to Afrikaans medium classes being ceased at both Table View High School and J.G. Meiring High School. Even President High School has been forced to become dual medium. Bosmansdam is now the only high school that offers Afrikaans medium classes in the Milnerton – Table View – Bothasig area (including Edgemead, Richwood and all areas in between). According to legislation regarding feeder areas, this makes all Afrikaans speaking students in these areas a priority for admittance to Bosmansdam. This could result in significant savings to parents in these areas that have to pay for transport to far-away schools such as Jan van Riebeeck High School and Durbanville High School. Thanks to sound financial management, Bosmansdam also charges some of the lowest school fees in the area. Notable alumni Alderman The Honourable James Vos, Member of Parliament for the Democratic Alliance and Shadow Minister for Tourism Lee Gallacher (Lee Dean) Inspirational Speaker & Round the World Yachtsman. BT Global Challenge 00/01 & Admirals Cup 2003 Jody Williams. Winner of the fourth season of South African Idols in 2007. References External links "About". Bosmansdam High School. Official Website Educational institutions established in 1971 High schools in South Africa Schools in Cape Town 1971 establishments in South Africa Bilingual schools in South Africa
"An Open Letter to Hobbyists" is a 1976 open letter written by Bill Gates, the co-founder of Microsoft, to early personal computer hobbyists, in which Gates expresses dismay at the rampant software piracy taking place in the hobbyist community, particularly with regard to his company's software. In the letter, Gates expressed frustration with most computer hobbyists who were using his company's Altair BASIC software without having paid for it. He asserted that such widespread unauthorized copying in effect discouraged developers from investing time and money in creating high-quality software. He cited the unfairness of gaining the benefits of software authors' time, effort, and capital without paying them as a rationale for refusing to publish the machine code for his company's flagship product, thereby making it available to lower-income hobbyists who could have borrowed such program listings from their local library and entered the program into their hobby computer by data entry. Altair BASIC In December 1974, Gates, a student at Harvard University, alongside Microsoft co-founder Paul Allen, who worked at Honeywell in Boston, both saw the Altair 8800 computer in the January 1975 issue of Popular Electronics for the first time. They had both written BASIC language programs since their days at Lakeside School in Seattle, and knew the Altair computer was powerful enough to support a BASIC interpreter. Both Gates and Allen wanted to be the first to offer BASIC for the Altair computer, and expected the software development tools they had previously created for their Intel 8008 microprocessor-based Traf-O-Data computer to give them a head start. By early March of the following year, Allen, Gates and Monte Davidoff, a fellow Harvard student, had created a BASIC interpreter that worked under simulation on a PDP-10 mainframe computer at Harvard. Allen and Gates had been in contact with Ed Roberts of MITS, and in March 1975, Allen visited Albuquerque, New Mexico, to test the software on an actual machine. To both Allen and Roberts' surprise, the software worked. MITS agreed to license the software from Allen and Gates. Allen left his job at Honeywell, and became the Vice President and Director of Software at MITS with a salary of $30,000 () a year; Gates remained a student at Harvard, and worked under MITS as a contractor instead, with the October 1975 company newsletter giving his title at the company as "Software Specialist". On July 22, 1975, MITS signed the contract with Allen and Gates, who would receive $3000 at the signing and a royalty for each copy of BASIC sold; $30 for the 4K version, $35 for the 8K version and $60 for the expanded version. The contract had a cap of $180,000, with MITS retaining an exclusive worldwide license to the program for 10 years. MITS would supply the computer time necessary for development on a PDP-10 owned by the Albuquerque school district. The April 1975 issue of MITS's Computer Notes had the banner headline "Altair Basic – Up and Running". The Altair 8800 computer was a break-even sale for MITS, who would need to sell additional memory boards, I/O boards, and other add-on options to make a profit. When purchased with two 4K memory boards and an I/O board, the 8K BASIC cost just $75, the initial standalone price for BASIC being $500. To promote the computer, MITS purchased a camper van and outfitted it with the complete product line, dubbed the "MITS-Mobile"; the company used this van to tour the United States, giving seminars featuring the Altair Computer and Altair BASIC. 1975 Homebrew Computer Club and subsequent copying of Altair BASIC The Homebrew Computer Club was an early computer hobbyist club in Palo Alto, California. At the first meeting in March 1975, Steve Dompier gave an account of his visit to the MITS factory in Albuquerque, where he had attempted to pick up his order for one of everything. He left with a computer kit with 256 bytes of memory. At the April 16, 1975 club meeting, Dompier keyed in a small program that played the song "The Fool on the Hill" on a nearby AM radio, through the use of radio frequency interference or static controlled by the timing loops in the program. Gates, who could not figure out how the computer could broadcast to the radio, described this in the July 1975 edition of Computer Notes as "the best demo program I've seen for the Altair". The June 1975 Homebrew Computer Club Newsletter carried this item written by Fred Moore, Editor: The MITS MOBILE came to Rickey's Hyatt House in Palo Alto June 5th & 6th. The room was packed (150+) with amateurs and experimenters eager to find out about this new electronic toy. At the same June seminar, a paper tape containing a pre-release version of Altair BASIC disappeared. The tape was given to Dompier, who passed it on to Dan Sokol, who had access to a high speed tape punch. At the next Homebrew Computer Club meeting, 50 copies of Altair BASIC on paper tape appeared in a cardboard box. MITS offered a complete Altair system with two MITS 4K Dynamic RAM boards, a serial interface board and Altair BASIC for $995. However, the $264 MITS RAM boards were unreliable, due to several component and design problems. An enterprising Homebrew Computer Club member, Robert Marsh, designed a 4K static memory that was plug-in compatible with the Altair 8800, and sold it for $255. His company, Processor Technology, became one of the most successful Altair compatible board suppliers. As a result of Dompier's copying of Altair BASIC and Marsh's third-party 4k static memory plug-in, many Altair 8800 computer owners came to skip purchasing the bundled package from MITS directly, instead purchasing their memory boards from a third-party supplier and using a "borrowed" copy of Altair BASIC. Ed Roberts acknowledged the 4K Dynamic RAM board problems in the October 1975 Computer Notes. The price was reduced from $264 to $195, and existing purchasers got a $50 rebate; the full price for 8K Altair BASIC was reduced to $200, though Roberts declined a customer's request that MITS give BASIC to customers for free, noting that MITS had made a "$180,000 royalty commitment to Micro Soft". Roberts also wrote that "Anyone who is using a stolen copy of MITS BASIC should identify himself for what he is, a thief", and described third-party hardware suppliers as "parasite companies". The newly released Processor Technology static RAM board drew more current than the MITS dynamic RAM board, with the addition of two or three boards taxing the Altair 8800's power supply. As a consequence, Howard Fullmer began selling a power supply upgrade for the Altair, naming his company Parasitic Engineering as a nod to Roberts' comments. Fullmer would later help define the industry standard for Altair compatible boards, the S-100 bus standard. The next year, 1976, would see many Altair bus computer clones such as the IMSAI 8080 and the Processor Technology Sol-20. Open letter At the end of 1975, MITS was shipping a thousand computers a month, but copies of BASIC were selling in the low hundreds. Additional software projects required more resources; the MITS 8-inch floppy disk system was about to be released, as was the MITS 680B computer based on the Motorola 6800. A high school friend of Allen and Gates, Ric Weiland, was hired to convert the 8080 BASIC to the 6800 microprocessor. David Bunnell, Computer Notes Editor, was sympathetic to Gates' position. He wrote in the September 1975 issue that "customers have been ripping off MITS software". Now I ask you--does a musician have the right to collect the royalty on the sale of his records or does a writer have the right to collect the royalty on the sale of his books? Are people who copy software any different than those who copy records and books? Gates, keen to attempt to explain the cost of developing software to the hobbyist community, restated much of what Bunnell had written in September and what Roberts had written in October; however, the tone of his letter was different, instead emphasising Gates' view that hobbyists were stealing from him personally, and not from a corporation. Why is this? As the majority of hobbyists must be aware, most of you steal your software. Hardware must be paid for, but software is something to share. Who cares if the people who worked on it get paid? One of the principal targets of the letter was the Homebrew Computer Club, with a copy sent to the club directly. The letter also appeared in Computer Notes. To ensure the letter would be noticed, Bunnell sent the letter via special delivery mail to every major computer publication in the country. In the letter, Gates also mentioned the development of the APL programming language for the 8080 and 6800 microprocessors, a programming language in vogue with some other computer scientists in the 1970s. The language, which used a character set based on the Greek alphabet, required special terminals to implement that most hobbyist terminals did not have; as well as not displaying symbols from the Greek alphabet, most hobbyist terminals did not even display lowercase letters. Though Gates was enamored with APL, Allen did not believe it could be sold as a product; interest in the project soon faded, and the software itself was never completed. Reaction Following the difficulties with receiving piecemeal royalties, Microsoft switched to a fixed-priced contract with MITS, who would pay $31,200 for a non-exclusive license of 6800 BASIC. The future sales of BASIC for the Commodore PET, the Apple II, the Radio Shack TRS-80 and others were all fixed-price contracts. In early 1976 ads for its Apple I computer, Apple Inc made the claims that "our philosophy is to provide software for our machines free or at minimal cost", emphasising that Apple BASIC was free. Microsoft's software development was done on a DEC PDP-10 mainframe computer system, with Allen having developed a program that could completely simulate a new microprocessor system. This allowed Microsoft to write and debug software before the new computer hardware was complete. The company was charged by the hour and by the amount of resources (such as storage and printing) used, the "$40,000 of computer time" mentioned in the letter. As a result of these software developments, the 6800 BASIC was complete before the Altair 680 was finished, with the 680 hardware arriving months late. Hal Singer of the Micro-8 Newsletter published an open letter to Roberts, pointing out that MITS promised a computer for $395, but that the price for a working system was $1000. He suggested a class action lawsuit or a Federal Trade Commission investigation into false advertising was in order. Hal also noted that rumors were circulating that Gates had developed BASIC on a Harvard University computer funded by the US government, and that customers should not pay for software already paid for by the taxpayer. Gates, Allen and Davidoff had used a PDP-10 at Harvard's Aiken Computer Center, the computer system of which had been funded by the Department of Defence through its Defence Advanced Research Projects Agency; Harvard officials were not pleased that Gates and Allen (who was not a student) had used the PDP-10 to develop a commercial product, but determined that the computer itself, which technically belonged to the military, was not covered by any Harvard policy; the PDP-10 was controlled by Professor Thomas Cheatham, who felt that students could use the machine for personal use. Harvard placed restrictions on the computer's use, and Gates and Allen had to use a commercial time share computer in Boston to finalize the software. In 2008, Homebrew member Lee Felsenstein recalled similar doubts about Gates' $40,000 number: "Well, we all knew [that] the evaluation of computer time was the ultimate in funny money. You never pay that much for the computer time and I think that research will show that they were using someone else's computer time; someone else was paying for that. It could have been Honeywell where Paul Allen was working. So we all knew this to be a spurious argument." According to Felsenstein, Gates' letter "delineated a rift [between] the actual industry where there's trying to make money and there's those hobbyist where we're trying to make things happen"; The industry needs the hobbyists and this was illustrated by what happened eventually. When National Semiconductor, which made their own microprocessor chips in '77 or '78, decided they needed a BASIC ... they asked, 'What's the most popular BASIC?' And the answer was Microsoft BASIC because everybody had copied it and everybody was using it. So we made Microsoft the standard BASIC. National Semiconductor went to Microsoft and bought a license, they were in business that way. This was the marketing function and the hobbyists did the marketing with a complete antipathy of the company in question. There were other BASICs and, you know, some of them might even have been better. ... [Gates' later success] was in a certain measure because of what we did, that he said we shouldn't do, we were thieves to do it, and all. Jim Warren, Homebrew Computer Club Member and editor of Dr. Dobb's Journal, wrote in the July 1976 ACM Programming Language newsletter about the successful Tiny BASIC project. The goal was to create BASIC language interpreters for microprocessor based computers. The project had started in late 1975, but the "Open Letter" motivated many hobbyists to participate. Computer clubs and individuals from all parts of the United States and the world soon created Tiny BASIC interpreters for the Intel 8080, the Motorola 6800 and MOS Technology 6502 processors. The assembly language source code was published or the software was sold for five or ten dollars. Magazines that published the letter Several responses to the letter were published, including one from Bill Gates. Editor Art Childs writes about the letter he received from the "author of Altair Basic" and the resulting controversy on propriety software. Jim Warren, the editor of Dr. Dobb's Journal, describes how the Tiny BASIC project is an alternative to hobbyist "ripping off" software. An article on software copyright law that discusses the "Open Letter to Hobbyists". See also Don't Copy That Floppy Notes References Bibliography Chapter 6 "Mechanics: Kits & Microcomputers" External links The letter in HTML format Reproduction of the letter as it appeared in Computer Notes Volume 1 Issue 9 – February, 1976 Reproduction of the letter as it appeared in the Homebrew Computer Club Newsletter Volume 2, Issue 1, January 31, 1976 (letter dated February 3) Works about intellectual property law Copyright law literature Works by Bill Gates History of Microsoft 1976 documents Open letters 1976 in the United States
The Cedar Creek District, also known as the Cedar Creek Locality Archaeological Site, is a Pleistocene archaeological site near Carnegie, Washita County, Oklahoma. The site was inhabited by early humans during the late Pleistocene; these humans used stone tools to hunt herd animals in the area. Artifacts recovered from the site include projectile points, a mammoth skeleton, and fireplace lenses. At the time of its discovery, it was the sole known Pleistocene habitation site in the eastern Great Plains. The site was added to the National Register of Historic Places on May 29, 1975. References External links Cedar Creek Locality Archaeological Site at the Oklahoma State Historic Preservation Office website Archaeological sites on the National Register of Historic Places in Oklahoma Geography of Washita County, Oklahoma Paleo-Indian archaeological sites in the United States National Register of Historic Places in Washita County, Oklahoma
Alessandro Borghi (1559 – 9 August 1613) was a Roman Catholic prelate who served as Bishop of Sansepolcro (1598–1605). Biography Alessandro Borghi was born in Modigliana, Italy in 1559. On 22 June 1598, he was appointed during the papacy of Pope Clement VIII as Bishop of Sansepolcro. He served as Bishop of Sansepolcro until his resignation in December 1605. He died on 9 August 1613. Episcopal succession References 16th-century Italian Roman Catholic bishops 17th-century Italian Roman Catholic bishops Bishops appointed by Pope Clement VIII 1559 births 1613 deaths
```go //go:build !gomock && !generate package mocklogging import ( "net" "time" "github.com/quic-go/quic-go/internal/mocks/logging/internal" "github.com/quic-go/quic-go/logging" "go.uber.org/mock/gomock" ) type MockConnectionTracer = internal.MockConnectionTracer func NewMockConnectionTracer(ctrl *gomock.Controller) (*logging.ConnectionTracer, *MockConnectionTracer) { t := internal.NewMockConnectionTracer(ctrl) return &logging.ConnectionTracer{ StartedConnection: func(local, remote net.Addr, srcConnID, destConnID logging.ConnectionID) { t.StartedConnection(local, remote, srcConnID, destConnID) }, NegotiatedVersion: func(chosen logging.Version, clientVersions, serverVersions []logging.Version) { t.NegotiatedVersion(chosen, clientVersions, serverVersions) }, ClosedConnection: func(e error) { t.ClosedConnection(e) }, SentTransportParameters: func(tp *logging.TransportParameters) { t.SentTransportParameters(tp) }, ReceivedTransportParameters: func(tp *logging.TransportParameters) { t.ReceivedTransportParameters(tp) }, RestoredTransportParameters: func(tp *logging.TransportParameters) { t.RestoredTransportParameters(tp) }, SentLongHeaderPacket: func(hdr *logging.ExtendedHeader, size logging.ByteCount, ecn logging.ECN, ack *logging.AckFrame, frames []logging.Frame) { t.SentLongHeaderPacket(hdr, size, ecn, ack, frames) }, SentShortHeaderPacket: func(hdr *logging.ShortHeader, size logging.ByteCount, ecn logging.ECN, ack *logging.AckFrame, frames []logging.Frame) { t.SentShortHeaderPacket(hdr, size, ecn, ack, frames) }, ReceivedVersionNegotiationPacket: func(dest, src logging.ArbitraryLenConnectionID, versions []logging.Version) { t.ReceivedVersionNegotiationPacket(dest, src, versions) }, ReceivedRetry: func(hdr *logging.Header) { t.ReceivedRetry(hdr) }, ReceivedLongHeaderPacket: func(hdr *logging.ExtendedHeader, size logging.ByteCount, ecn logging.ECN, frames []logging.Frame) { t.ReceivedLongHeaderPacket(hdr, size, ecn, frames) }, ReceivedShortHeaderPacket: func(hdr *logging.ShortHeader, size logging.ByteCount, ecn logging.ECN, frames []logging.Frame) { t.ReceivedShortHeaderPacket(hdr, size, ecn, frames) }, BufferedPacket: func(typ logging.PacketType, size logging.ByteCount) { t.BufferedPacket(typ, size) }, DroppedPacket: func(typ logging.PacketType, pn logging.PacketNumber, size logging.ByteCount, reason logging.PacketDropReason) { t.DroppedPacket(typ, pn, size, reason) }, UpdatedMetrics: func(rttStats *logging.RTTStats, cwnd, bytesInFlight logging.ByteCount, packetsInFlight int) { t.UpdatedMetrics(rttStats, cwnd, bytesInFlight, packetsInFlight) }, AcknowledgedPacket: func(encLevel logging.EncryptionLevel, pn logging.PacketNumber) { t.AcknowledgedPacket(encLevel, pn) }, LostPacket: func(encLevel logging.EncryptionLevel, pn logging.PacketNumber, reason logging.PacketLossReason) { t.LostPacket(encLevel, pn, reason) }, UpdatedMTU: func(mtu logging.ByteCount, done bool) { t.UpdatedMTU(mtu, done) }, UpdatedCongestionState: func(state logging.CongestionState) { t.UpdatedCongestionState(state) }, UpdatedPTOCount: func(value uint32) { t.UpdatedPTOCount(value) }, UpdatedKeyFromTLS: func(encLevel logging.EncryptionLevel, perspective logging.Perspective) { t.UpdatedKeyFromTLS(encLevel, perspective) }, UpdatedKey: func(generation logging.KeyPhase, remote bool) { t.UpdatedKey(generation, remote) }, DroppedEncryptionLevel: func(encLevel logging.EncryptionLevel) { t.DroppedEncryptionLevel(encLevel) }, DroppedKey: func(generation logging.KeyPhase) { t.DroppedKey(generation) }, SetLossTimer: func(typ logging.TimerType, encLevel logging.EncryptionLevel, exp time.Time) { t.SetLossTimer(typ, encLevel, exp) }, LossTimerExpired: func(typ logging.TimerType, encLevel logging.EncryptionLevel) { t.LossTimerExpired(typ, encLevel) }, LossTimerCanceled: func() { t.LossTimerCanceled() }, ECNStateUpdated: func(state logging.ECNState, trigger logging.ECNStateTrigger) { t.ECNStateUpdated(state, trigger) }, ChoseALPN: func(protocol string) { t.ChoseALPN(protocol) }, Close: func() { t.Close() }, Debug: func(name, msg string) { t.Debug(name, msg) }, }, t } ```
```java /* * code is released under a tri EPL/GPL/LGPL license. You can use it, * redistribute it and/or modify it under the terms of the: * */ package org.truffleruby.language; import com.oracle.truffle.api.CompilerDirectives; import com.oracle.truffle.api.ThreadLocalAction; import com.oracle.truffle.api.nodes.Node; import org.truffleruby.RubyContext; import org.truffleruby.RubyLanguage; import org.truffleruby.core.fiber.RubyFiber; import org.truffleruby.core.thread.RubyThread; import java.util.Objects; import java.util.concurrent.atomic.AtomicBoolean; /** A action to run in a guest-language safepoint. Actions with side-effects should usually be asynchronous. */ public abstract class SafepointAction extends ThreadLocalAction { private static final SafepointPredicate CURRENT_FIBER_OF_THREAD = // (context, thread, action) -> thread == action.getTargetThread() && context.getLanguageSlow().getCurrentFiber() == action.getTargetThread().getCurrentFiber(); private final boolean publicSynchronous; private final String reason; private final SafepointPredicate filter; private final RubyThread targetThread; private final AtomicBoolean executed; public SafepointAction(String reason, RubyThread targetThread, boolean hasSideEffects, boolean synchronous) { this(reason, CURRENT_FIBER_OF_THREAD, hasSideEffects, synchronous, targetThread); } public SafepointAction(String reason, SafepointPredicate filter, boolean hasSideEffects, boolean synchronous) { this(reason, filter, hasSideEffects, synchronous, null); } private SafepointAction( String reason, SafepointPredicate filter, boolean hasSideEffects, boolean synchronous, RubyThread targetThread) { super(hasSideEffects, synchronous); this.publicSynchronous = synchronous; this.reason = reason; this.filter = filter; this.targetThread = targetThread; this.executed = targetThread != null ? new AtomicBoolean(false) : null; } public abstract void run(RubyThread rubyThread, Node currentNode); @Override protected final void perform(Access access) { if (Thread.currentThread() != access.getThread()) { throw CompilerDirectives.shouldNotReachHere( "safepoint action for " + access.getThread() + " executed on other thread: " + Thread.currentThread()); } final RubyLanguage language = RubyLanguage.getCurrentLanguage(); final RubyContext context = RubyLanguage.getCurrentContext(); final RubyThread rubyThread = language.getCurrentThread(); final Node node = access.getLocation(); if (filter.test(context, rubyThread, this)) { // actions which need to run on the current Fiber of a Ruby Thread might execute multiple times, because // they can be scheduled at different times and the current fiber of that thread might change in between. // So ensure we only execute the action once. if (executed == null || executed.compareAndSet(false, true)) { run(rubyThread, node); } if (filter == SafepointPredicate.ALL_THREADS_AND_FIBERS) { final RubyFiber currentFiber = rubyThread.getCurrentFiber(); for (RubyFiber fiber : rubyThread.runningFibers) { if (fiber != currentFiber) { context.fiberManager.safepoint(currentFiber, fiber, this, node); } } } } } public boolean isSynchronous() { return publicSynchronous; } public RubyThread getTargetThread() { return Objects.requireNonNull(targetThread); } @Override public String toString() { return reason + " " + Integer.toHexString(System.identityHashCode(this)); } } ```
The African grass rat (Arvicanthis niloticus) is a species of rodent in the family Murinae. Taxonomy The species is divided into the following six subspecies. A. n. niloticus: Nile, Egypt; A. n. dembeensis (Rüppell, 1842): Sudan, Ethiopia, Eritrea; Tanzania, Kenya, Burundi, Uganda, Democratic Republic of Congo; A. n. naso (Pocock, 1934): Yemen; A. n. rhodesiae (St.Leger, 1932): Zambia; A. n. solatus (Thomas, 1925): Senegal; Mauritania, Mali, Niger, Chad, Burkina Faso, Ghana, Nigeria, Cameroon and Central African Republic; A. n. testicularis (Sundevall, 1843): upper Nile, central Sudan. Description Arvicanthis niloticus is a rodent of medium size, with the length of the head and of the body between 159 and 202 mm, the length of the tail between 125 and 173 mm, the length of the foot between 33 and 42 mm, the length of the ears between 19 and 23 mm and a weight up to 201 g. The fur is rough. The upper parts of individual hairs are yellowish with blackish tips. Long yellow or orange hairs are present on the bottom. A dorsal dark stripe more or less distinct extends from the head to the base of the tail. The ventral parts are whitish, with the base of the hairs blackish. Areas where there are the whiskers, the eyes and a small patch behind each ear are orange. The legs are pink. The tail is shorter than the head and body, densely covered with hair, blackish above and white-yellowish below. The karyotype is 2n = 62, FN = 62-64. Distribution It is mainly distributed in the Sahel and the sudano-zambesian Savanna belt, namely Benin, Burkina Faso, Burundi, Central African Republic, Chad, Democratic Republic of the Congo, Ivory Coast, Eritrea, Ethiopia, Gambia, Ghana, Kenya, Malawi, Mauritania, Niger, Nigeria, Senegal, Sierra Leone, Somalia, Sudan, Tanzania, Togo, Uganda, and Zambia. Populations also occur in Algeria, Egypt, and Yemen. Cycle of life Despite its wide distribution and commonness, little is known about the biology and actual occurrence of the species. It reproduces mainly between June and November. The females give birth to 5-6 small cubs at least 3-4 times a year. Life expectancy in the wild is 2.5–3 years. Habitat Its natural habitats are dry savanna, moist savanna, subtropical or tropical moist shrubland, arable land, pastureland, rural gardens, urban areas, irrigated land, and seasonally flooded agricultural land. Use as an animal model for Type 2 Diabetes The Nile rat has gained traction as a useful nutritional model to study Type 2 Diabetes (T2DM). The Nile Rat gets Metabolic Syndrome that develops into diet-induced Type 2 Diabetes that is similar to human T2DM: insulin resistance, hyperinsulinemia, increased body fat, hypertension, elevated Triglycerides with decreased High-Density Lipoproteins, and eventually hyperglycemia and beta cell failure resulting in depressed insulin and end-stage diabetes that includes severe ketosis. The beta cell failure follows the same course as the five-stage decline documented in humans with T2DM. References Arvicanthis Rodents of Africa Stored-product pests Mammals described in 1803 Taxonomy articles created by Polbot
```python import demistomock as demisto def test_algosec_query(mocker): """ Given: - response mock. When: - running AlgosecQuery script. Then: - Ensure that the results were built correctly. """ from AlgosecQuery import algosec_query ticket = [{"Type": 3, "Contents": {"QueryResponse": {"QueryResult": {'some_info': 'info: test'}}}}] mocker.patch.object(demisto, 'executeCommand', return_value=ticket) results_mock = mocker.patch.object(demisto, 'results') algosec_query() assert results_mock.call_args[0][0]['Contents'] == [{'some_info': 'info: test'}] ```
```objective-c /* * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkReadPixelsRec_DEFINED #define SkReadPixelsRec_DEFINED #include "SkImageInfo.h" /** * Helper class to package and trim the parameters passed to readPixels() */ struct SkReadPixelsRec { SkReadPixelsRec(const SkImageInfo& info, void* pixels, size_t rowBytes, int x, int y) : fPixels(pixels) , fRowBytes(rowBytes) , fInfo(info) , fX(x) , fY(y) {} void* fPixels; size_t fRowBytes; SkImageInfo fInfo; int fX; int fY; /* * On true, may have modified its fields (except fRowBytes) to make it a legal subset * of the specified src width/height. * * On false, leaves self unchanged, but indicates that it does not overlap src, or * is not valid (e.g. bad fInfo) for readPixels(). */ bool trim(int srcWidth, int srcHeight); }; #endif ```
The 2013–14 West Virginia Mountaineers men's basketball team represented West Virginia University during the 2013–14 NCAA Division I men's basketball season. The Mountaineers were coached by seventh year head coach Bob Huggins and played their home games at WVU Coliseum. They finished the season 17–16, 9–9 in Big 12 play to finish in a tie for sixth place. They lost in the quarterfinals of the Big 12 tournament to Texas. They were invited to the National Invitation Tournament where they lost in the first round to Georgetown. Before the season Departures Recruits In addition to the five high school players signed, coach Bob Huggins also received commitments from Junior College transfers Jonathan Holton (Palm Beach Community College) and Remi Dibo (Casper College), both forwards. Season Preseason Head coach Bob Huggins announced the Mountaineers' full season schedule on August 8, 2013. The Mountaineers would play home dates against opponents such as Gonzaga and Purdue, as well as participating in the annual Cancún Challenge with 2013 NCAA Tournament teams such as Saint Louis and Wisconsin. The Mountaineers also scheduled to visit Virginia Tech and Missouri, with the Missouri game part of the first ever Big 12/SEC Challenge. West Virginia's 18 game conference slate included home and away dates against each of the nine other members of the Big 12 Conference. Roster Schedule and results Sources: and |- !colspan=9 style="background:#FFC600; color:#003366;"| Exhibition |- !colspan=9 style="background:#FFC600; color:#003366;"| Non-conference games |- !colspan=9 style="background:#FFC600; color:#003366;"| Conference games |- !colspan=9 style="background:#FFC600; color:#003366;"| Big 12 tournament |- !colspan=9 style="background:#FFC600; color:#003366;"| NIT See also 2013–14 NCAA Division I men's basketball rankings 2013–14 West Virginia Mountaineers women's basketball team References West Virginia West Virginia Mountaineers men's basketball seasons West Virginia Mount Mount
Houblon is a surname. Notable people of this surname include: Abraham Houblon (1640–11 May 1722), Governor of the Bank of England, brother of James and John Sir James Houblon (1629–1700), MP, Director of the Bank of England, brother of Abraham and John Sir John Houblon (1632–1712), first Governor of the Bank of England, brother of Abraham and James Jacob Houblon (1710–1770), MP John Archer-Houblon (1773–1831), MP, descendant of the Bank of England Houblons Thomas Archer Houblon (1849–1933), Archdeacon of Oxford See also Houblon's Almshouses, Richmond Houblon Apartments, part of the Relay Building, Whitechapel, London Surnames
The women's 3000 metres steeplechase event at the 2007 European Athletics U23 Championships was held in Debrecen, Hungary, at Gyulai István Atlétikai Stadion on 13 and 15 July. Medalists Results Final 15 July Heats 13 July Qualified: first 4 in each heat and 4 best to the Final Heat 1 Heat 2 Participation According to an unofficial count, 19 athletes from 15 countries participated in the event. (1) (1) (1) (1) (1) (3) (1) (1) (1) (1) (2) (2) (1) (1) (1) References 3000 metres steeplechase Steeplechase at the European Athletics U23 Championships
Lisa Wenger (born Lisa Ruutz :23 January 1858 – 17 October 1941) was a Swiss painter and writer of children's books. During the 1930s she was one of the best known and most widely read authors in the country. Life Lisa Ruutz was born in Bern. Heinrich Ruutz, her father, owned a fabrics and textiles shop in Basel. She undertook artistic training successively in Basel, Paris and Florence, finishing off at the Fine Arts Academy in Düsseldorf. Her teachers in Basel, included Hans Sandreuter. In 1881 Lisa Ruutz opened a porcelain painting workshop, targeted on women and young ladies in Basel. In 1890 she married Théo Wenger, the owner of a "steel goods" factory. That involved relocating to Delémont which at the time was still in the Canton of Bern (although the call for cantonal borders that more closely reflected language frontiers was already a longstanding cause of agitation). It was only on reaching the age of 46, after establishing herself at nearby Courtételle, that she embarked on the career for which she is today better remembered, as a children's author. After 1919 Lisa and Théo Wenger became regular visitors to Carona (Lugano) in Ticino, members of the little informal summer season writers and artists' colony surrounding the author Hermann Hesse who moved to Lugano after the war. Their daughter Ruth Wenger (1897-1994) became a particularly welcome guest at the "Casa Costanza" (identified in less respectful sources as "the parrot house"). Eventually, in 1924, Ruth Wenger married Hermann Hesse. Ruth was twenty years younger than her husband and her first marriage was of short duration: the family attachment to Ticino appears to have lasted better, since it was at Carona that Lisa Wenger died in the autumn/fall of 1941. Published output (selection) Das blaue Märchenbuch 1905 Wie der Wald still ward, animal story 1906 Joggeli söll ga Birli schüttle, 1908 Prüfungen, novel 1908 Die Wunderdoktorin, novel 1909 Der Kampf um die Kanzel, short story 1911 Amoralische Fabeln, 1920 Baum ohne Blätter, 1938 Das Zeichen. Ein Schauspiel in drei Akten, 1914 Der Garten. Erzählungen aus dem Tessin, 1924 Der Vogel im Käfig, novel 1922 Der Waldfrevler, 1919 Die Altweibermühle. Zehn Frauenmärchen, 1921 Die drei gescheiten Männer von Au. Vetter Jeremias and die Schwestern Tanzeysen., novels 1919 Die Longway und ihre Ehen., novel 1930 Die Wunderdoktorin, novel 1910 Eine Heimkehr Elisabeth sucht Gott, 1941 Er und Sie und das Paradies, 1918 Es schwärs Warte. Einakter, 1930 Hans-Peter Ochsner., novel 1955 Licht und Schatten in San Marto, novel 1940 Oh wie bös, oh nit so bös: die Geschichte vom Mannli und vom Fraueli, 1946 s Zeiche: ein Schauspiel in drei Akten, 1916 Verenas Hochzeit, 1939 Vier junge Musikanten erleben Abenteuer. Zeichnungen von Fritz Deringer. Schweizerisches Jugendschriftenwerk 1940, SJW-Issue Nr. 88 Was mich das Leben lehrte: Gedanken und Erfahrungen, 1927 Wie der Wald still ward, 1907 Aber, aber Kristinli. Schweizerisches Jugendschriftenwerk 1935, SJW-Issue Nr. 48, Jubiläumsausgabe-Reprint 2006 with illustrations by Meret Oppenheim, References External links 1858 births 1941 deaths 19th-century Swiss painters 20th-century Swiss painters 20th-century Swiss women writers Artists from Bern 20th-century Swiss novelists 20th-century short story writers Swiss women short story writers Swiss short story writers Swiss women painters Swiss women novelists Swiss writers in German 20th-century Swiss women artists 19th-century Swiss women artists
```python from ._job_op import CreateJobOp, DeleteJobOp from ._run_op import SubmitRunOp, DeleteRunOp from ._cluster_op import CreateClusterOp, DeleteClusterOp from ._secretscope_op import CreateSecretScopeOp, DeleteSecretScopeOp from ._workspaceitem_op import ImportWorkspaceItemOp, DeleteWorkspaceItemOp from ._dbfsblocks_op import CreateDbfsBlockOp, DeleteDbfsBlockOp __version__ = "0.2.0" ```
Jean de la Chambre (1605, Haarlem – 1668, Haarlem) was an engraver and calligrapher in the Dutch Golden Age, best known today for his portrait by Frans Hals, which is in the collection of the National Gallery in London. Biography His parents were originally from Cambrai and travelled via Antwerp north to escape the troubles of the Fall of Antwerp, settling in Haarlem where Jean was later born. Like his contemporary Nicolaes Boddingius, he was probably a student of the Haarlem schoolmasters Peter Heyns, Jan van de Velde the Elder or Jacob van der Schuere. According to the RKD, he was a school master in Haarlem and the father of Jean de la Chambre the younger. He is known for ornamental works. He had a brother, Pieter or Pierre de la Chambre, who was schoolmaster in Beverwijk. References Exhibition from 30 August – 2 November 2014 in the Waalse Kerk, Haarlem over Jean de la Chambre and the French schools of Haarlem 1605 births 1668 deaths Calligraphers from the Northern Netherlands Artists from Haarlem Dutch engravers Frans Hals Painters from Haarlem
The National Museum of Natural History ( or ) in Montevideo is a natural history museum in Uruguay. The museum's first permanent exhibition is located at Miguelete 1825—the former Miguelete Prison—and the scientific collections, library and administrative offices are at Calle 25 de Mayo 582 in the Old City. History In September 1837 the Government of Uruguay established a commission to create a library and a national museum. Dámaso Antonio Larrañaga was appointed president of the commission, but the commission itself requested that take over. The commission undertook an expedition that December to excavate a glyptodon fossil from the banks of the Pedernal river in Canelones Department, the results of which were published in 1838. The museum itself first opened on 18 July 1838 in what is now the Plaza Zabala. In 1840, the poet Francisco Acuña de Figueroa was appointed director and for some years interest in the development of the museum waned, and it was not well regarded. Over time its holdings diminished and conflict between the museum board and central government led to management being taken back by the latter in 1870. The government introduced new regulations pertaining to the museum in 1875 which imposed new duties on the director to maintain and develop the museum's holdings, to classify them, and to report regularly on the museum's running. In 1879 the museum was moved to the west wing of the Solís Theatre, where it remained until the year 2000, having previously been housed at Calle Sarandí 472 from 1867 to 1878. In 1880, the National Library—the Biblioteca Nacional de Uruguay—and the National Museum were split. The 1875 reforms having proven insufficient, in 1888 a new commission led by director Juan Mesa was established to reorganise the museum and its operation. This was followed in 1890 by another reorganisation commission under José Arechavaleta, with Carlos Berg as director. It was around this time that the National Museum started to split between the scientific half, which became the National Museum of Natural History, and the half devoted to the arts and humanities, which became the and the National Museum of Visual Arts. This separation was made official in 1911 and the current title of the National Museum of Natural History first appears in law in 1913. When Berg resigned in 1892, Arechavaleta was appointed director and continued in that position until his death in 1912. In 1915, the museum acquired Arechavaleta's herbarium of 7,000 specimens and private library of 1,500 books. The herbarium is a significant part of the museum's holdings today. The space in the Solís Theatre was already considered unsuitable by 1902, but the museum continued there until the year 2000 when, during the theatre's six-year renovation, it was forced to move temporarily into the former Barreiro y Ramos bookstore and then, in 2006, into a former auction house. While the MNHN had previously been able to give exhibitions from its base in the theatre, it had not had any permanent exhibition and for years after vacating it was not able to exhibit to the public at all, though the collections remained open to researchers. In July 2018 the museum opened its first permanent exhibition in the grounds of a former prison, the Cárcel de Miguelete, which it shares with the (Espacio de Arte Contemporáneo or EAC), also sponsored by the museum. The prison was in active use from 1888 to 1986, ceasing all operations in 1998, and is the oldest panopticon prison surviving in Latin America in its original form. The EAC took over the central block of the prison (from which the five wings could be observed) in 2010 before being officially inaugurated in 2018, at the same time as the MNHN exhibition space. The new MNHN was opened by Minister of Education and Culture María Julia Muñoz in a ceremony to mark the museum's 180th anniversary. The move to the former prison grounds had originally been planned in 2004 but fell apart due to lack of funding. Several other plans were made subsequently before the final decision was taken. The museum's full collection and library were expected to move into the new accommodation later. Collections and operation The herbology collection at the museum totals around 80,000 specimens. The museum also has thousands of mammals, birds, fish, molluscs, arachnids and others, and the museum itself (separate and apart from the National Library) holds over 250,000 volumes. The first two exhibitions opened when the museum moved to the former Miguelete Prison were one about the evolution of dinosaurs in what is now Uruguay, and one about the present-day ecology of Uruguay. In 2008, a skull held at the museum since the 1980s was identified as the holotype of a previously unknown species, which was named Josephoartigasia monesi in honour of former director of the museum, paleontologist Álvaro Mones, in recognition of his work on prehistoric rodents (the genus Josephoartigasia is named for Uruguayan national hero José Gervasio Artigas). Josephoartigasia monesi is the largest known species of rodent, estimated to have weighed up to 1,000 kg. It lived between 2 and 4 million years ago. The Annals of the museum were first published in 1894 under Arechavaleta. The museum has also published its Botanical Communications since 1942, Zoological Communications since 1943, Anthropological Communications since 1956 and Paleontological Communications since 1970. The Extra Publications have been published occasionally since 1933. Between 1973 and 1985 the museum also published the Bulletin of the National Museum of Natural History free of charge for schools. Directors The following have served as director of the museum: Dámaso Antonio Larrañaga (1837) (original president of the commission to form the museum) Teodoro Vilardebó (1837-1840) (replacing Larrañaga in the same position) Francisco Acuña de Figueroa (1840-?) Mariano Augusto Fabián Ferreira (1868-?) Juan Mesa (1888-1890) Carlos Berg (1890-1892) José Arechavaleta (1892-1912) Garibaldi José Devincenzi (1912-1942) Ergasto H Cordero (1942-1951) (1951-1970) (1970-1984) Héctor S. Osorio (1984-1998) Álvaro Mones (1998-2004) Arturo Toscano (2004-2009) Víctor Scarabino (2009-2013) Javier Alfredo González García (2013–present) See also , another prominent natural history museum in Montevideo Lucrecia Covelo, associate curator and entomologist. References External links Natural history museums Museums established in 1838 1838 establishments in Uruguay Museums in Montevideo
Margaret R. O'Donnell (born 1938 – ) is a retired British tennis player who competed at the Wimbledon Championships between 1959 and 1965. She was active from 1956 to 1967 and won 13 career singles titles.. Career Margaret was born Liverpool, Lancashire, England as a junior she joined the team at Liverpool Cricket Club. She won Lancashire Junior County Championships twice in 1955. Her career highlights include winning the North of England Hard Court Championships three times (1963, 1965–1966), the Hoylake and West Kirby Open three times (1957–1958, 1961), the Nottinghamshire Championships (1961), the Lee-on-Solent Open two times (1957–1958), Torquay Open, (1961) St. Annes Open (1962), and the Lancashire Championships (1963). Additionally she was finalist at the Essex Championships at Frinton-on-Sea (1956), Worthing Open (1958), the Bedford Open two times, (1958–1959), Carmarthenshire Championships at Llanelli two times (1959, 1964), the Scottish Hard Court Championships at St. Andrews (1961). She played her final tournament in 1967 at the Winchester Open in England where she reached the final, before losing to Britain's Anthea Rigby. References External links Wimbledon Official Player Profile: Margaret R. O'Donnell 1938 births English female tennis players Sportspeople from Liverpool Living people British female tennis players Tennis people from Lancashire
Chhoti Khatu railway station is a railway station in Nagaur district, Rajasthan. Its code is CTKT. It serves Chhoti Khatu town. The station consists of a single platform. Passenger, Express, and Superfast trains halt here. Trains The following trains halt at Chhoti Khatu railway station in both directions: Bandra Terminus–Jammu Tawi Vivek Express Jodhpur–Delhi Sarai Rohilla Superfast Express Salasar Express Bhagat Ki Kothi–Kamakhya Express References Railway stations in Nagaur district Jodhpur railway division
```javascript import prettier from "../../config/prettier-entry.js"; const { doc: { builders: { hardline }, }, format, } = prettier; function makePlugin(withOutdatedApi = false) { return { parsers: { // parsers leak across tests, so the name needs to be unique [withOutdatedApi ? "baz-parser-outdated" : "baz-parser"]: { parse: (text) => ({ type: "root", lines: text .trim() .split("\n") .map((line) => ({ type: line.startsWith("{") ? "json" : "plain", text: line, })), }), astFormat: "baz-ast", }, }, printers: { "baz-ast": { print(path, options, print) { const { type, text } = path.getValue(); switch (type) { case "root": return path.map(print, "lines"); case "json": case "plain": return [text, hardline]; } }, embed: withOutdatedApi ? (path, print, textToDoc) => { const { type, text } = path.getValue(); if (type === "json") { return [ textToDoc(text, { parser: "json", printWidth: Number.POSITIVE_INFINITY, }), hardline, ]; } } : (path) => { const { type, text } = path.getValue(); if (type === "json") { return async (textToDoc) => [ await textToDoc(text, { parser: "json", printWidth: Number.POSITIVE_INFINITY, }), hardline, ]; } }, }, }, }; } const input = `abcdef { "foo": "bar"} 1234`; describe("embed API in plugins", () => { test("with new signature should work", async () => { expect( await format(input, { plugins: [makePlugin()], parser: "baz-parser", }), ).toMatchSnapshot(); }); test("with outdated signature should cause error", async () => { await expect( format(input, { plugins: [makePlugin(true)], parser: "baz-parser-outdated", }), ).rejects.toThrowErrorMatchingSnapshot(); }); }); ```
```xml testNamespace.callbackWithDraggableParams(function (hello, goodbye) { }) testNamespace.callbackWithDraggableParams(function (okay, d) { }) testNamespace.callbackWithDraggableParams(function (sure, whatever) { }) testNamespace.callbackWithDraggableParams(function (c, d) { }) ```
Universitario de Trujillo is a Peruvian football club, playing in the city of Trujillo, Peru. They currently play in the second division of the Liga Distrital de Trujillo. History In the 2009 Copa Perú, the club classified to the National Stage, but was eliminated by Defensor San José of Tumbes. In the 2011 Copa Perú, the club classified to the National Stage, but was eliminated by Los Caimanes in the Round of 16. Honours Regional Región II: 1 Winners (1): 2009 Runner-up (1): 2011 Liga Departamental de La Libertad: 2 Winners (2): 2009, 2011 Liga Distrital de Trujillo: 2 Winners (2): 1983, 2009 Runner-up (3): 2000, 2008, 2011 See also List of football clubs in Peru Peruvian football league system External links Los 16 expedientes Football clubs in Peru Association football clubs established in 1965
Hammer is a Canadian crime thriller film, directed by Christian Sparkes and released in 2019. The film stars Will Patton as Stephen Davis, a man in Sault Ste. Marie, Ontario, whose estranged son Chris (Mark O'Brien) double-crosses drug dealer Adams (Ben Cotton), forcing Stephen and Chris to reunite after Adams takes Stephen's younger sun Jeremy (Connor Price) hostage. The cast also includes Vickie Papavs as Stephen's wife Karen, as well as Dayle McLeod, Curtis Caravaggio, Lara Jean Chorostecki, Jason Weinberg, Stephen Lush, Deidre Gillard-Rowlings and Trish Rainone in supporting roles. The film premiered in the Canadian Vanguard program at the 2019 Whistler Film Festival, before going into commercial release on video on demand platform in 2020. Critical response Allie Gregory of Exclaim! wrote that "Hammer is a succinct and realistic examination of these family archetypes, never leaning too far into the outlandish tropes of the crime thriller genre. You won't see any car chases or martial arts; rather, you'll get a slick, solid, hour-and-a-half tale of the everyman stumbling through dodgy black market activity, while trying to subdue the dangers he presents to the people around him. And it works really, really well." For The Globe and Mail, Barry Hertz wrote that "while Sparkes’ script requires a substantial amount of gullibility from its audience, it is still a mostly slick and tight invention. As Chris and Stephen are plunged into an afternoon of ugliness, the urge to scream at them for their poor choices matches the compulsion to pay careful attention to whatever fresh hell Sparkes unleashes next." Dennis Harvey of Variety wrote that "The constant escalation of danger in Sparkes’ script (from a story co-credited to Joel Thomas Hynes, who wrote the director's prior feature, “Cast No Shadow”) often threatens to become overkill, particularly since its poker-faced presentation admits to no absurdity or even much gallows’ humor. Still, the film manages to maintain enough conviction to pull this hyperbolic scenario off. Embedded in the tale are reversals of character expectation — it's hand-wringing Karen rather than gruff Stephen who emerges the unforgiving “tough love” parent, while “good son” Jeremy and perpetual screwup Chris aren't quite what they appear — which demand sometimes-challenging leaps of viewer belief. Fortunately, the impressive cast makes that doable. In particular, Patton lends his father figure a pained devotion that renders just about psychologically plausible straight-arrow Stephen's willingness to violently flaunt the law under pressure. And O’Brien gradually reveals how Chris has already done a lot to redeem himself, even if appearances suggest the opposite." For The Hollywood Reporter, Frank Scheck wrote that "it’s Patton’s intense, vanity-free turn — his wildly unkempt, thinning hair practically delivers a performance of its own — that firmly anchors the proceedings. Although the film’s relentless pacing doesn’t allow for much in terms of emotional dynamics, he provides subtle nuances that keep you fully invested in his character, from a low-key breakdown scene that is all the more moving for its restraint to a rueful grunt in the final scene that speaks volumes. This is an actor who knows how to produce maximum effect through minimal means." References External links 2019 films 2019 thriller films English-language Canadian films Canadian crime thriller films 2010s Canadian films Films shot in Sault Ste. Marie, Ontario Films directed by Christian Sparkes
```c++ // // Version 1.0. (See path_to_url //your_sha256_hash-------------- #define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS #include <boost/mpl/assert.hpp> #include <boost/mpl/vector.hpp> #include <boost/function_types/function_type.hpp> #include <boost/function_types/function_pointer.hpp> #include <boost/function_types/function_reference.hpp> #include <boost/function_types/is_callable_builtin.hpp> #ifndef BOOST_FT_CC_STDCALL # error "test not supported with this compiler/platform" #endif namespace ft = boost::function_types; namespace mpl = boost::mpl; typedef ft::stdcall_cc cc; BOOST_MPL_ASSERT(( ft::is_callable_builtin< ft::function_type<mpl::vector<void,int>, cc>::type > )); BOOST_MPL_ASSERT(( ft::is_callable_builtin< ft::function_pointer<mpl::vector<void,int>, cc>::type > )); BOOST_MPL_ASSERT(( ft::is_callable_builtin< ft::function_reference<mpl::vector<void,int>, cc>::type > )); ```
```go // Code generated by lister-gen. DO NOT EDIT. package v3 import ( v3 "github.com/projectcalico/api/pkg/apis/projectcalico/v3" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" ) // HostEndpointLister helps list HostEndpoints. // All objects returned here must be treated as read-only. type HostEndpointLister interface { // List lists all HostEndpoints in the indexer. // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v3.HostEndpoint, err error) // Get retrieves the HostEndpoint from the index for a given name. // Objects returned here must be treated as read-only. Get(name string) (*v3.HostEndpoint, error) HostEndpointListerExpansion } // hostEndpointLister implements the HostEndpointLister interface. type hostEndpointLister struct { indexer cache.Indexer } // NewHostEndpointLister returns a new HostEndpointLister. func NewHostEndpointLister(indexer cache.Indexer) HostEndpointLister { return &hostEndpointLister{indexer: indexer} } // List lists all HostEndpoints in the indexer. func (s *hostEndpointLister) List(selector labels.Selector) (ret []*v3.HostEndpoint, err error) { err = cache.ListAll(s.indexer, selector, func(m interface{}) { ret = append(ret, m.(*v3.HostEndpoint)) }) return ret, err } // Get retrieves the HostEndpoint from the index for a given name. func (s *hostEndpointLister) Get(name string) (*v3.HostEndpoint, error) { obj, exists, err := s.indexer.GetByKey(name) if err != nil { return nil, err } if !exists { return nil, errors.NewNotFound(v3.Resource("hostendpoint"), name) } return obj.(*v3.HostEndpoint), nil } ```
Pac-Man: Adventures in Time is a 2000 maze video game in the Pac-Man series developed by Creative Asylum and Mind's Eye Productions, and published by Hasbro Interactive, in collaboration with Namco. The game follows a formula similar to the original arcade game, while expanding on it with new features. In the game, Pac-Man travels through various time periods using Professor Pac-Man's time machine to recover pieces of an ancient artifact. The game was released for Microsoft Windows PCs in 2000. Gameplay Like the original Pac-Man, the objective of each level is to guide Pac-Man through a maze and eat all the dots in the maze, while avoiding the prehistoric ghosts that inhabit each level. Eating the power pellets scattered across the maze allows Pac-Man to eat the ghosts for a short period of time, awarding bonus points for eating ghosts continuously. After eating a certain number of dots, a bonus fruit appears in an area of the maze, which grants extra points when eaten. Eating all the dots allows Pac-Man to proceed to the next round. Pac-Man also has the ability to jump, allowing him to dodge ghosts, though a cooldown is triggered when performed; the length varies between game difficulties. If a ghost or deadly object comes in contact with Pac-Man, he loses a life. A game over occurs when all lives are lost. Extra lives are awarded for every 50,000 points scored. If Pac-Man stays on a round for too long, the original ghost gang (Blinky, Pinky, Inky and Clyde) appears and begins chasing Pac-Man more aggressively than the prehistoric ghosts. Various rounds feature special gimmicks, such as hills that slow Pac-Man down when climbing up and speeds him up when descending, floor levels, elevators, deadly objects or creatures that can kill Pac-Man and the ghosts upon contact, etc. Some mazes take different forms, such as a cube, a cylinder, and a sphere. Said mazes also allow Pac-Man to walk on walls. In underwater sections of mazes, an oxygen meter appears which depletes slowly; Pac-Man loses a life if he runs out of oxygen. Oxygen is replenished by eating dots or by going back on the surface. The camera tends to follow Pac-Man from a close-up view, though the game allows the maze to be viewed from a perspective on select levels. The game features 45 rounds, spread across five different time periods such as pre-historic times, ancient Egypt, the Middle Ages, the wild west and the future. Between rounds, there are checkpoints that allow the player to save their game, as well as saving their current score and life count. Bonus mini-games occur after every few rounds, where Pac-Man can obtain bonus points. The mini-games consist of various different play styles. After completing the mazes in quest mode, they are unlocked in the maze mode. The game features a multiplayer mode, which allows up to four players play as Pac-Man, Ms. Pac-Man, Professor Pac-Man and Baby Pac-Man to compete in various mini-games across different mazes. Unfilled player slots are controlled by the computer. Dot Mania consists of each player competing to be the first to eat 120 dots in a maze of regenerating dots. Time Bomb, in a similar fashion to hot potato, consists of the four players attempting to pass a ticking bomb to other players by coming in contact with them; the player that is holding the time bomb when the timer reaches zero is eliminated from play, and continues until there is one player left. Ghost Tag plays in a similar fashion to Dot Mania, except that 3 randomly selected players start as ghosts. The player that is Pac-Man must eat 120 dots and avoid the player-controlled ghosts. When a ghost catches the player that is Pac-Man, the player's ghost transforms into the player's respective Pac-Man; the player that was previously Pac-Man is turned into a ghost. The multiplayer mode support online and LAN play. Plot Ghosts Inky and Clyde steal a golden power pellet known as the Artifact, under the command of a shadowy creature known as Mollusc. Mollusc smashes the Artifact; the result of the explosion scatters the Artifact's four fragmented pieces across time and space. Professor Pac-Man wakes up Pac-Man from his sleep and alerts him about the crisis. Professor Pac-Man prepares a hastily constructed time machine for Pac-Man that allows him to travel through time and recover the Artifact pieces. Pac-Man travels through various time periods, including prehistoric times, Ancient Egypt, the Middle Ages, and the Wild West. Pac-Man eventually obtains all the artifact pieces; the time machine malfunctions and sends him to the future; with Professor Pac-Man stating that an alternate power source is needed to correctly power the time machine and bring Pac-Man back to the present. Pac-Man reaches the Reactor Core of a station and is able to harness its energy to be finally transported back to his own time period, with the Artifact reassembled. Pac-Man returns to the present, arriving directly at the second after Mollusc breaks the original Artifact. Pac-Man uses the repaired Artifact to fire a beam that disintegrates Mollusc. Development The game was announced on May 5, 2000, in a press release. The voice cast consists of Duncan MacLaren as Pac-Man and Professor Pac-Man, and Matt Clark as Mollusc. Reception Pac-Man: Adventures In Time received mostly positive reviews. GameSpot praised the game, saying "The occasionally sluggish control can be a little frustrating, but not enough to take the fun out of the game,". The game currently holds a ranking of 79 out of 100 on Metacritic. References 2000 video games Video games about dinosaurs Hasbro games Maze games Mind's Eye Productions games Multiplayer and single-player video games Pac-Man Video games about time travel Video games developed in the United Kingdom Windows games Windows-only games
Jericho is a masculine given name whose bearers include: Jericho Brown (born 1976), American poet and writer Jerricho Cotchery (born 1982), American National Football League player and coach Jericho Cruz (born 1990), Philippine Basketball Association player Jericho Nograles (born 1981), Filipino politician Jericho Petilla (), Filipino politician, management engineer and businessman Jericho Rosales (born 1979), Filipino actor Jericho Shinde (born 1959), Zimbabwean football coach and former player Jericho Sims (born 1998), American National Basketball Association player Masculine given names
Stanydale Temple is a Neolithic site on Mainland, Shetland, Scotland. It is located in a field to the south of the modern village of Stanydale, roughly by road northwest of Lerwick, to the northeast of the village of Gruting. Once a roofed building, all that remains is a large, walled enclosure. There is uncertainty about the original purpose of the building, but its unusual size indicates some communal purpose, or that it was possibly the home of an important person. It is designated a scheduled monument. Location and origins The building lies within a field of about almost completely surrounded by a dry stone wall. The field contains two smaller stone houses and about 30 mounds of stone. The stones would have been cleared from the field to enable cultivation. The settlement may well have been established in 2500–2000 BC, when Neolithic farmers first came to Shetland. Pottery sherds show that it was also occupied in the late Bronze Age (1000–700 BC) and early Iron Age (600–400 BC). Structure The smaller houses both have a large central space and some small rooms. The main building is heel-shaped with a concave facade, as are other neolithic buildings in Shetland. It has a shallow crescent-shaped forecourt. An alcove outside the door may have been a guardroom. The building is entered from the forecourt via a short, dog-legged passage. The building's walls enclose an oval area about with six shallow recesses. Excavations have found two post holes along the axis of the oval that each contained the carbonized remains of a spruce post in width. The species of spruce, Picea abies (Norway spruce), is not native to Scotland; the posts were presumably driftwood carried across from Scandinavia. The floor of the building also contained charcoal from Scots Pine. The building most likely had a wooden ridge roof. There would have been few if any trees on the island when Stanydale was built, but driftwood must have been plentiful since it would have taken of timber to construct the roof. Usage Charles S. T. Calder explored the site in 1949. He thought that Stanydale was a temple, a name that has stuck, with a design originating from Mediterranean temples. He saw a strong resemblance to these structures, saying, "It is almost impossible not to assume that the Maltese temples are the prototypes from which Stanydale is derived and which solve the question of its purpose." Other archaeologists have cast doubt on the "temple" theory, but agree that the building is unique in Shetland of the period in apparently being designed for communal use or for a high-status person. Excavations have found sherds of Beaker pottery and flat-based pots. Burnt barley grains have been found, as well as the remains of sheep and cattle. One of the buildings at Stanydale contained saddle-querns and grain-rubbers, which would have been used to grind the barley. Gallery References Citations Sources External links Neolithic Scotland Archaeological sites in Shetland Historic Scotland properties in Shetland Scheduled Ancient Monuments in Shetland Mainland, Shetland
George Farmer is a British aquascaping expert. Farmer served as a Royal Air Force bomb disposal officer. After serving in Afghanistan, he suffered from PTSD and found that aquascaping helped him. He says that for him, "a well-aquascaped aquarium is the most therapeutic thing you can look at." He started aquascaping in 2002 and made it his career. Farmer started a YouTube channel for aquascaping enthusiasts, which as of 2018 had 20 000 subscribers, rising to 200 000 as of 2023. He has been a columnist for the aquarium magazine Practical Fishkeeping for more than 10 years. In 2007 he co-founded the UK Aquatic Plants Society, which as of 2018 had 25 000 members. He is married with 3 children. References Bibliography External links George Farmer in Practical Fishkeeping UK Aquatic Plants Society Jane Perrone, Episode 74: Aquascaping with George Farmer, podcast Living people 20th-century Royal Air Force personnel 21st-century British people Year of birth missing (living people) Fishkeeping
Hermione Hannen (26 January 1913 – 1 October 1983) was an English theatre and film actress. She was born in London, the daughter of Nicholas "Beau" Hannen, who was also an actor on the stage and in film. Biography Hermione Hannen was born on 26 January 1913, London. Hannen's grandfather was Sir Nicholas John Hannen, who served as Chief Justice of the British Supreme Court for China and Japan and also as British Consul-General in Shanghai. Sir Nicholas died in office and marines from served as an honour guard and pallbearers at his funeral. On her mother's side she was the grand-daughter of Sir Henry Morland, a British administrator in the Bombay Presidency of India. Through his marriage to Fanny Ellen Hannah Louisa Carandini, she was the great-grand-daughter of the opera singer, Marie Carandini. Marie was married to the Italian nobleman, Jerome Carandini, the Marquis of Sarzano, and thus Hannen was also a distant cousin of the actor Christopher Lee. Career Hannen trained at the Royal Academy of Dramatic Art. Her début as an actress was in Cairo in 1932 during her father's tour of the Far East and Australia. In the 1930s, she acted in numerous plays performed at the Old Vic in London, including The Voysey Inheritance, The Rivals, Man and Superman and Hamlet. She also played Ophelia in Hamlet at the Westminster Theatre in 1937 and in Silent Night at St James's. She also performed in five films from 1935 to 1946. During World War II, from 1940 to 1945, she was a BBC announcer, and from 1954, she broadcast regularly in plays. Hannen also published the book The Whole Wide World Apart in 1956. Marriages Hannen was married twice. Her first husband was the English actor Anthony Quayle (1913–1989) and her second husband was the Welsh actor Clifford Evans (1912–1985), who survived her. Death Hannen died in Shrewsbury on 1 October 1983, aged 70. References External links 1913 births 1983 deaths English stage actresses English film actresses 20th-century English actresses Alumni of RADA Actresses from London
```go // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package gensupport import ( "bytes" "io" "google.golang.org/api/googleapi" ) // MediaBuffer buffers data from an io.Reader to support uploading media in // retryable chunks. It should be created with NewMediaBuffer. type MediaBuffer struct { media io.Reader chunk []byte // The current chunk which is pending upload. The capacity is the chunk size. err error // Any error generated when populating chunk by reading media. // The absolute position of chunk in the underlying media. off int64 } // NewMediaBuffer initializes a MediaBuffer. func NewMediaBuffer(media io.Reader, chunkSize int) *MediaBuffer { return &MediaBuffer{media: media, chunk: make([]byte, 0, chunkSize)} } // Chunk returns the current buffered chunk, the offset in the underlying media // from which the chunk is drawn, and the size of the chunk. // Successive calls to Chunk return the same chunk between calls to Next. func (mb *MediaBuffer) Chunk() (chunk io.Reader, off int64, size int, err error) { // There may already be data in chunk if Next has not been called since the previous call to Chunk. if mb.err == nil && len(mb.chunk) == 0 { mb.err = mb.loadChunk() } return bytes.NewReader(mb.chunk), mb.off, len(mb.chunk), mb.err } // loadChunk will read from media into chunk, up to the capacity of chunk. func (mb *MediaBuffer) loadChunk() error { bufSize := cap(mb.chunk) mb.chunk = mb.chunk[:bufSize] read := 0 var err error for err == nil && read < bufSize { var n int n, err = mb.media.Read(mb.chunk[read:]) read += n } mb.chunk = mb.chunk[:read] return err } // Next advances to the next chunk, which will be returned by the next call to Chunk. // Calls to Next without a corresponding prior call to Chunk will have no effect. func (mb *MediaBuffer) Next() { mb.off += int64(len(mb.chunk)) mb.chunk = mb.chunk[0:0] } type readerTyper struct { io.Reader googleapi.ContentTyper } // ReaderAtToReader adapts a ReaderAt to be used as a Reader. // If ra implements googleapi.ContentTyper, then the returned reader // will also implement googleapi.ContentTyper, delegating to ra. func ReaderAtToReader(ra io.ReaderAt, size int64) io.Reader { r := io.NewSectionReader(ra, 0, size) if typer, ok := ra.(googleapi.ContentTyper); ok { return readerTyper{r, typer} } return r } ```
```smalltalk using System; using System.Collections.Generic; namespace g3 { public class IndexUtil { // test if [a0,a1] and [b0,b1] are the same pair, ignoring order public static bool same_pair_unordered(int a0, int a1, int b0, int b1) { return (a0 == b0) ? (a1 == b1) : (a0 == b1 && a1 == b0); } // find the vtx that is the same in both ev0 and ev1 public static int find_shared_edge_v(ref Index2i ev0, ref Index2i ev1) { if (ev0.a == ev1.a) return ev0.a; else if (ev0.a == ev1.b) return ev0.a; else if (ev0.b == ev1.a) return ev0.b; else if (ev0.b == ev1.b) return ev0.b; else return DMesh3.InvalidID; } // find the vtx that is the same in both ev0 and ev1 public static int find_edge_other_v(ref Index2i ev, int v) { if (ev.a == v) return ev.b; else if (ev.b == v) return ev.a; else return DMesh3.InvalidID; } public static int find_edge_other_v(Index2i ev, int v) { if (ev.a == v) return ev.b; else if (ev.b == v) return ev.a; else return DMesh3.InvalidID; } // return index of a in tri_verts, or InvalidID if not found public static int find_tri_index(int a, int[] tri_verts) { if (tri_verts[0] == a) return 0; if (tri_verts[1] == a) return 1; if (tri_verts[2] == a) return 2; return DMesh3.InvalidID; } public static int find_tri_index(int a, Index3i tri_verts) { if (tri_verts.a == a) return 0; if (tri_verts.b == a) return 1; if (tri_verts.c == a) return 2; return DMesh3.InvalidID; } public static int find_tri_index(int a, ref Index3i tri_verts) { if (tri_verts.a == a) return 0; if (tri_verts.b == a) return 1; if (tri_verts.c == a) return 2; return DMesh3.InvalidID; } // return index of a in tri_verts, or InvalidID if not found public static int find_edge_index_in_tri(int a, int b, int[] tri_verts ) { if (same_pair_unordered(a, b, tri_verts[0], tri_verts[1])) return 0; if (same_pair_unordered(a, b, tri_verts[1], tri_verts[2])) return 1; if (same_pair_unordered(a, b, tri_verts[2], tri_verts[0])) return 2; return DMesh3.InvalidID; } public static int find_edge_index_in_tri(int a, int b, ref Index3i tri_verts ) { if (same_pair_unordered(a, b, tri_verts.a, tri_verts.b)) return 0; if (same_pair_unordered(a, b, tri_verts.b, tri_verts.c)) return 1; if (same_pair_unordered(a, b, tri_verts.c, tri_verts.a)) return 2; return DMesh3.InvalidID; } // find sequence [a,b] in tri_verts (mod3) and return index of a, or InvalidID if not found public static int find_tri_ordered_edge(int a, int b, int[] tri_verts) { if (tri_verts[0] == a && tri_verts[1] == b) return 0; if (tri_verts[1] == a && tri_verts[2] == b) return 1; if (tri_verts[2] == a && tri_verts[0] == b) return 2; return DMesh3.InvalidID; } /// <summary> /// find sequence [a,b] in tri_verts (mod3) and return index of a, or InvalidID if not found /// </summary> public static int find_tri_ordered_edge(int a, int b, ref Index3i tri_verts) { if (tri_verts.a == a && tri_verts.b == b) return 0; if (tri_verts.b == a && tri_verts.c == b) return 1; if (tri_verts.c == a && tri_verts.a == b) return 2; return DMesh3.InvalidID; } public static int find_tri_ordered_edge(int a, int b, Index3i tri_verts) { return find_tri_ordered_edge(a, b, ref tri_verts); } // find sequence [a,b] in tri_verts (mod3) then return the third **value**, or InvalidID if not found public static int find_tri_other_vtx(int a, int b, int[] tri_verts) { for (int j = 0; j < 3; ++j) { if (same_pair_unordered(a, b, tri_verts[j], tri_verts[(j + 1) % 3])) return tri_verts[(j + 2) % 3]; } return DMesh3.InvalidID; } public static int find_tri_other_vtx(int a, int b, Index3i tri_verts) { for (int j = 0; j < 3; ++j) { if (same_pair_unordered(a, b, tri_verts[j], tri_verts[(j + 1) % 3])) return tri_verts[(j + 2) % 3]; } return DMesh3.InvalidID; } public static int find_tri_other_vtx(int a, int b, DVector<int> tri_array, int ti) { int i = 3*ti; for (int j = 0; j < 3; ++j) { if (same_pair_unordered(a, b, tri_array[i+j], tri_array[i + ((j + 1) % 3)])) return tri_array[i + ((j + 2) % 3)]; } return DMesh3.InvalidID; } /// <summary> /// assuming a is in tri-verts, returns other two vertices, in correct order (or Index2i.Max if not found) /// </summary> public static Index2i find_tri_other_verts(int a, ref Index3i tri_verts) { if (tri_verts.a == a) return new Index2i(tri_verts.b, tri_verts.c); else if (tri_verts.b == a) return new Index2i(tri_verts.c, tri_verts.a); else if (tri_verts.c == a) return new Index2i(tri_verts.a, tri_verts.b); return Index2i.Max; } // find sequence [a,b] in tri_verts (mod3) then return the third **index**, or InvalidID if not found public static int find_tri_other_index(int a, int b, int[] tri_verts) { for (int j = 0; j < 3; ++j) { if (same_pair_unordered(a, b, tri_verts[j], tri_verts[(j + 1) % 3])) return (j + 2) % 3; } return DMesh3.InvalidID; } // Set [a,b] to order found in tri_verts (mod3). return true if we swapped. // Assumes that a and b are in tri_verts, if not the result is garbage! public static bool orient_tri_edge(ref int a, ref int b, ref Index3i tri_verts) { if (a == tri_verts.a) { if (tri_verts.c == b) { int x = a; a = b; b = x; return true; } } else if (a == tri_verts.b) { if (tri_verts.a == b) { int x = a; a = b; b = x; return true; } } else if (a == tri_verts.c) { if (tri_verts.b == b) { int x = a; a = b; b = x; return true; } } return false; } public static bool orient_tri_edge(ref int a, ref int b, Index3i tri_verts) { return orient_tri_edge(ref a, ref b, ref tri_verts); } // set [a,b] to order found in tri_verts (mod3), and return third **value**, or InvalidID if not found public static int orient_tri_edge_and_find_other_vtx(ref int a, ref int b, int[] tri_verts) { for (int j = 0; j < 3; ++j) { if (same_pair_unordered(a, b, tri_verts[j], tri_verts[(j + 1) % 3])) { a = tri_verts[j]; b = tri_verts[(j + 1) % 3]; return tri_verts[(j + 2) % 3]; } } return DMesh3.InvalidID; } // set [a,b] to order found in tri_verts (mod3), and return third **value**, or InvalidID if not found public static int orient_tri_edge_and_find_other_vtx(ref int a, ref int b, Index3i tri_verts) { for (int j = 0; j < 3; ++j) { if (same_pair_unordered(a, b, tri_verts[j], tri_verts[(j + 1) % 3])) { a = tri_verts[j]; b = tri_verts[(j + 1) % 3]; return tri_verts[(j + 2) % 3]; } } return DMesh3.InvalidID; } public static bool is_ordered(int a, int b, ref Index3i tri_verts) { return (tri_verts.a == a && tri_verts.b == b) || (tri_verts.b == a && tri_verts.c == b) || (tri_verts.c == a && tri_verts.a == b); } public static bool is_same_triangle(int a, int b, int c, ref Index3i tri) { if (tri.a == a) return same_pair_unordered(tri.b, tri.c, b, c); else if ( tri.b == a ) return same_pair_unordered(tri.a, tri.c, b, c); else if ( tri.c == a ) return same_pair_unordered(tri.a, tri.b, b, c); return false; } public static void cycle_indices_minfirst(ref Index3i tri) { if (tri.b < tri.a && tri.b < tri.c) { int a = tri.a, b = tri.b, c = tri.c; tri.a = b; tri.b = c; tri.c = a; } else if (tri.c < tri.a && tri.c < tri.b) { int a = tri.a, b = tri.b, c = tri.c; tri.a = c; tri.b = a; tri.c = b; } } public static void sort_indices(ref Index3i tri) { // possibly this can be re-ordered to have fewer tests? ... if ( tri.a < tri.b && tri.a < tri.c ) { if (tri.b > tri.c) { int b = tri.b; tri.b = tri.c; tri.c = b; } } else if ( tri.b < tri.a && tri.b < tri.c ) { if ( tri.a < tri.c ) { int b = tri.b; tri.b = tri.a; tri.a = b; } else { int a = tri.a, b = tri.b, c = tri.c; tri.a = b; tri.b = c; tri.c = a; } } else if ( tri.c < tri.a && tri.c < tri.b ) { if ( tri.b < tri.a ) { int c = tri.c; tri.c = tri.a; tri.a = c; } else { int a = tri.a, b = tri.b, c = tri.c; tri.a = c; tri.b = a; tri.c = b; } } } public static Vector3i ToGrid3Index(int idx, int nx, int ny) { int x = idx % nx; int y = (idx / nx) % ny; int z = idx / (nx * ny); return new Vector3i(x, y, z); } public static int ToGrid3Linear(int i, int j, int k, int nx, int ny) { return i + nx * (j + ny * k); } public static int ToGrid3Linear(Vector3i ijk, int nx, int ny) { return ijk.x + nx * (ijk.y + ny * ijk.z); } public static int ToGrid3Linear(ref Vector3i ijk, int nx, int ny) { return ijk.x + nx * (ijk.y + ny * ijk.z); } /// <summary> /// Filter out invalid entries in indices[] list. Will return indices itself if /// none invalid, and bForceCopy == false /// </summary> public static int[] FilterValid(int[] indices, Func<int, bool> FilterF, bool bForceCopy = false ) { int nValid = 0; for ( int i = 0; i < indices.Length; ++i ) { if (FilterF(indices[i])) ++nValid; } if (nValid == indices.Length && bForceCopy == false) return indices; int[] valid = new int[nValid]; int vi = 0; for ( int i = 0; i < indices.Length; ++i ) { if (FilterF(indices[i])) valid[vi++] = indices[i]; } return valid; } /// <summary> /// return trune if CheckF returns true for all members of indices list /// </summary> public static bool IndicesCheck(int[] indices, Func<int, bool> CheckF) { for ( int i = 0; i < indices.Length; ++i ) { if (CheckF(indices[i]) == false) return false; } return true; } /// <summary> /// Apply map to indices /// </summary> public static void Apply(List<int> indices, IIndexMap map) { int N = indices.Count; for (int i = 0; i < N; ++i) indices[i] = map[indices[i]]; } public static void Apply(int[] indices, IIndexMap map) { int N = indices.Length; for (int i = 0; i < N; ++i) indices[i] = map[indices[i]]; } public static void Apply(int[] indices, IList<int> map) { int N = indices.Length; for (int i = 0; i < N; ++i) indices[i] = map[indices[i]]; } public static void TrianglesToVertices(DMesh3 mesh, IEnumerable<int> triangles, HashSet<int> vertices) { foreach ( int tid in triangles ) { Index3i tv = mesh.GetTriangle(tid); vertices.Add(tv.a); vertices.Add(tv.b); vertices.Add(tv.c); } } public static void TrianglesToVertices(DMesh3 mesh, HashSet<int> triangles, HashSet<int> vertices) { foreach ( int tid in triangles ) { Index3i tv = mesh.GetTriangle(tid); vertices.Add(tv.a); vertices.Add(tv.b); vertices.Add(tv.c); } } public static void TrianglesToEdges(DMesh3 mesh, IEnumerable<int> triangles, HashSet<int> edges) { foreach ( int tid in triangles ) { Index3i te = mesh.GetTriEdges(tid); edges.Add(te.a); edges.Add(te.b); edges.Add(te.c); } } public static void TrianglesToEdges(DMesh3 mesh, HashSet<int> triangles, HashSet<int> edges) { foreach ( int tid in triangles ) { Index3i te = mesh.GetTriEdges(tid); edges.Add(te.a); edges.Add(te.b); edges.Add(te.c); } } public static void EdgesToVertices(DMesh3 mesh, IEnumerable<int> edges, HashSet<int> vertices) { foreach (int eid in edges) { Index2i ev = mesh.GetEdgeV(eid); vertices.Add(ev.a); vertices.Add(ev.b); } } public static void EdgesToVertices(DMesh3 mesh, HashSet<int> edges, HashSet<int> vertices) { foreach (int eid in edges) { Index2i ev = mesh.GetEdgeV(eid); vertices.Add(ev.a); vertices.Add(ev.b); } } } public static class gIndices { // integer indices offsets in x/y directions public static readonly Vector2i[] GridOffsets4 = new Vector2i[] { new Vector2i( -1, 0), new Vector2i( 1, 0), new Vector2i( 0, -1), new Vector2i( 0, 1) }; // integer indices offsets in x/y directions and diagonals public static readonly Vector2i[] GridOffsets8 = new Vector2i[] { new Vector2i( -1, 0), new Vector2i( 1, 0), new Vector2i( 0, -1), new Vector2i( 0, 1), new Vector2i( -1, 1), new Vector2i( 1, 1), new Vector2i( -1, -1), new Vector2i( 1, -1) }; // Corner vertices of box faces - see Box.Corner for points associated w/ indexing // Note that public static readonly int[,] BoxFaces = new int[6, 4] { { 1, 0, 3, 2 }, // back, -z { 4, 5, 6, 7 }, // front, +z { 0, 4, 7, 3 }, // left, -x { 5, 1, 2, 6 }, // right, +x, { 0, 1, 5, 4 }, // bottom, -y { 7, 6, 2, 3 } // top, +y }; // Box Face normal. Use Sign(BoxFaceNormals[i]) * Box.Axis( Abs(BoxFaceNormals[i])-1 ) // (+1 is so we can have a sign on X) public static readonly int[] BoxFaceNormals = new int[6] { -3, 3, -1, 1, -2, 2 }; // integer indices offsets in x/y/z directions, corresponds w/ BoxFaces directions public static readonly Vector3i[] GridOffsets6 = new Vector3i[] { new Vector3i( 0, 0,-1), new Vector3i( 0, 0, 1), new Vector3i(-1, 0, 0), new Vector3i( 1, 0, 0), new Vector3i( 0,-1, 0), new Vector3i( 0, 1, 0) }; // integer indices offsets in x/y/z directions and diagonals public static readonly Vector3i[] GridOffsets26 = new Vector3i[] { // face-nbrs new Vector3i( 0, 0,-1), new Vector3i( 0, 0, 1), new Vector3i(-1, 0, 0), new Vector3i( 1, 0, 0), new Vector3i( 0,-1, 0), new Vector3i( 0, 1, 0), // edge-nbrs (+y, 0, -y) new Vector3i(1, 1, 0), new Vector3i(-1, 1, 0), new Vector3i(0, 1, 1), new Vector3i( 0, 1,-1), new Vector3i(1, 0, 1), new Vector3i(-1, 0, 1), new Vector3i(1, 0,-1), new Vector3i(-1, 0,-1), new Vector3i(1, -1, 0), new Vector3i(-1,-1, 0), new Vector3i(0, -1, 1), new Vector3i( 0,-1,-1), // corner-nbrs (+y,-y) new Vector3i(1, 1, 1), new Vector3i(-1, 1, 1), new Vector3i(1, 1,-1), new Vector3i(-1, 1,-1), new Vector3i(1,-1, 1), new Vector3i(-1,-1, 1), new Vector3i(1,-1,-1), new Vector3i(-1,-1,-1) }; public static IEnumerable<Vector3i> Grid3Indices(int nx, int ny, int nz) { for (int z = 0; z < nz; ++z) for (int y = 0; y < ny; ++y) for (int x = 0; x < nx; ++x) yield return new Vector3i(x, y, z); } public static IEnumerable<Vector3i> Grid3IndicesYZ(int ny, int nz) { for (int z = 0; z < nz; ++z) for (int y = 0; y < ny; ++y) yield return new Vector3i(0, y, z); } public static IEnumerable<Vector3i> Grid3IndicesXZ(int nx, int nz) { for (int z = 0; z < nz; ++z) for (int x = 0; x < nx; ++x) yield return new Vector3i(x, 0, z); } public static IEnumerable<Vector3i> Grid3IndicesXY(int nx, int ny) { for (int y = 0; y < ny; ++y) for (int x = 0; x < nx; ++x) yield return new Vector3i(x, y, 0); } } } ```
```html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "path_to_url"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Reference</title> <link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> <link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> <link rel="up" href="../chrono.html" title="Chapter&#160;7.&#160;Boost.Chrono 2.0.5"> <link rel="prev" href="users_guide.html" title="User's Guide"> <link rel="next" href="appendices.html" title="Appendices"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td> <td align="center"><a href="../../../index.html">Home</a></td> <td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="path_to_url">People</a></td> <td align="center"><a href="path_to_url">FAQ</a></td> <td align="center"><a href="../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="users_guide.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../chrono.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="appendices.html"><img src="../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h2 class="title" style="clear: both"> <a name="chrono.reference"></a><a class="link" href="reference.html" title="Reference">Reference </a> </h2></div></div></div> <div class="toc"><dl class="toc"> <dt><span class="section"><a href="reference.html#chrono.reference.chrono_include_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">include</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x">Included on the C++11 Recommendation</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io_v1">Chrono I/O V1</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io">Chrono I/O V2</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.round">Chrono Rounding Utilities</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks">Other Clocks</a></span></dt> </dl></div> <p> As <code class="computeroutput"><span class="keyword">constexpr</span></code> will not be supported by some compilers, it is replaced in the code by <code class="computeroutput"><span class="identifier">BOOST_CONSTEXPR</span></code> for <code class="computeroutput"><span class="keyword">constexpr</span></code> functions and <code class="computeroutput"><span class="identifier">BOOST_STATIC_CONSTEXPR</span></code> for struct/class static fields. The same applies to <code class="computeroutput"><span class="identifier">noexecpt</span></code> which is replaced by <code class="computeroutput"><span class="keyword">noexcept</span></code> in the code. </p> <p> The documentation doesn't use these macros. </p> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> <a name="chrono.reference.chrono_include_hpp"></a><a class="link" href="reference.html#chrono.reference.chrono_include_hpp" title="Header &lt;boost/chrono/include.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">include</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h3></div></div></div> <p> Include all the chrono header files. </p> <pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">chrono_io</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">process_cpu_clocks</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">thread_clocks</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">ceil</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">floor</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">round</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> </pre> </div> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> <a name="chrono.reference.cpp0x"></a><a class="link" href="reference.html#chrono.reference.cpp0x" title="Included on the C++11 Recommendation">Included on the C++11 Recommendation</a> </h3></div></div></div> <div class="toc"><dl class="toc"> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.chrono_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.chrono_chrono_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.duration_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">duration</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.clock"><code class="computeroutput"><span class="identifier">Clock</span></code> Requirements</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.trivial_clock"><code class="computeroutput"><span class="identifier">TrivialClock</span></code> Requirements</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.ecclock"><code class="computeroutput"><span class="identifier">EcClock</span></code> Requirements</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.time_point_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">time_point</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.system_clocks_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">system_clocks</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.clock_strings_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">clock_strings</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.chrono_typeof_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">typeof</span><span class="special">/</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> </dl></div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.cpp0x.chrono_hpp"></a><a class="link" href="reference.html#chrono.reference.cpp0x.chrono_hpp" title="Header &lt;boost/chrono.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <p> Include only the standard files. </p> <pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> </pre> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.cpp0x.chrono_chrono_hpp"></a><a class="link" href="reference.html#chrono.reference.cpp0x.chrono_chrono_hpp" title="Header &lt;boost/chrono/chrono.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.chrono_chrono_hpp.limitations">Limitations and Extensions</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.chrono_chrono_hpp.conf">Configuration Macros</a></span></dt> </dl></div> <p> Include only the standard files. </p> <pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">duration</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">time_point</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">system_clocks</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">typeof</span><span class="special">/</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.chrono_chrono_hpp.limitations"></a><a class="link" href="reference.html#chrono.reference.cpp0x.chrono_chrono_hpp.limitations" title="Limitations and Extensions">Limitations and Extensions</a> </h5></div></div></div> <p> At present, there is no know limitation respect to the C++11 standard. </p> <p> The current implementation provides in addition: </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> clock error handling as specified in <a href="path_to_url#935" target="_top">clock error handling needs to be specified</a>. </li> <li class="listitem"> process and thread clocks. </li> </ul></div> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.chrono_chrono_hpp.conf"></a><a class="link" href="reference.html#chrono.reference.cpp0x.chrono_chrono_hpp.conf" title="Configuration Macros">Configuration Macros</a> </h5></div></div></div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.chrono_chrono_hpp.conf.assert"></a><a class="link" href="reference.html#chrono.reference.cpp0x.chrono_chrono_hpp.conf.assert" title="How Assert Behaves?">How Assert Behaves?</a> </h6></div></div></div> <p> When <code class="computeroutput"><span class="identifier">BOOST_NO_CXX11_STATIC_ASSERT</span></code> is defined, the user can select the way static assertions are reported. Define </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <code class="computeroutput"><span class="identifier">BOOST_CHRONO_USES_STATIC_ASSERT</span></code>: define it if you want to use Boost.StaticAssert. </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">BOOST_CHRONO_USES_MPL_ASSERT</span></code>: define it if you want to use Boost.MPL static assertions. </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">BOOST_CHRONO_USES_ARRAY_ASSERT</span></code>: define it if you want to use internal static assertions. </li> </ul></div> <p> The default behavior is as <code class="computeroutput"><span class="identifier">BOOST_CHRONO_USES_ARRAY_ASSERT</span></code> was defined. </p> <p> When <code class="computeroutput"><span class="identifier">BOOST_CHRONO_USES_MPL_ASSERT</span></code> is not defined the following symbols are defined as </p> <pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">BOOST_CHRONO_A_DURATION_REPRESENTATION_CAN_NOT_BE_A_DURATION</span> <span class="special">\</span> <span class="string">"A duration representation can not be a duration"</span> <span class="preprocessor">#define</span> <span class="identifier">your_sha256_hash_RATIO</span> <span class="special">\</span> <span class="string">"Second template parameter of duration must be a boost::ratio"</span> <span class="preprocessor">#define</span> <span class="identifier">BOOST_CHRONO_DURATION_PERIOD_MUST_BE_POSITIVE</span> <span class="special">\</span> <span class="string">"duration period must be positive"</span> <span class="preprocessor">#define</span> <span class="identifier">your_sha256_hashOOST_CHRONO_DURATION</span> <span class="special">\</span> <span class="string">"Second template parameter of time_point must be a boost::chrono::duration"</span> </pre> <p> Depending on the static assertion used system you will have an hint of the failing assertion either through the symbol or through the text. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.chrono_chrono_hpp.conf.no_hybrid"></a><a class="link" href="reference.html#chrono.reference.cpp0x.chrono_chrono_hpp.conf.no_hybrid" title="Don't provide Hybrid Error Handling">Don't provide Hybrid Error Handling</a> </h6></div></div></div> <p> When <code class="computeroutput"><span class="identifier">BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING</span></code> is defined the lib doesn't provides the hybrid error handling prototypes: </p> <pre class="programlisting"><span class="identifier">Clock</span><span class="special">::</span><span class="identifier">time_point</span> <span class="identifier">Clock</span><span class="special">::</span><span class="identifier">now</span><span class="special">(</span><span class="identifier">system</span><span class="special">::</span><span class="identifier">error_code</span><span class="special">&amp;</span><span class="identifier">ec</span><span class="special">=</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">throws</span><span class="special">());</span> </pre> <p> This allow to be closer to the standard and to avoid the Boost.System dependency, making possible to have Boost.Chrono as a header-only library. </p> <p> By default <code class="computeroutput"><span class="identifier">BOOST_CHRONO_PROVIDE_HYBRID_ERROR_HANDLING</span></code> is defined. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.chrono_chrono_hpp.conf.header_only"></a><a class="link" href="reference.html#chrono.reference.cpp0x.chrono_chrono_hpp.conf.header_only" title="How to Build Boost.Chrono as a Header Only Library?">How to Build Boost.Chrono as a Header Only Library?</a> </h6></div></div></div> <p> When <code class="computeroutput"><span class="identifier">BOOST_CHRONO_HEADER_ONLY</span></code> is defined the lib is header-only. </p> <p> If in addition <code class="computeroutput"><span class="identifier">BOOST_USE_WINDOWS_H</span></code> is defined <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">windows</span><span class="special">.</span><span class="identifier">h</span><span class="special">&gt;</span></code> is included, otherwise files in <code class="computeroutput"><span class="identifier">boost</span><span class="special">/</span><span class="identifier">detail</span><span class="special">/</span><span class="identifier">win</span></code> are used to reduce the impact of including <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">windows</span><span class="special">.</span><span class="identifier">h</span><span class="special">&gt;</span></code>. </p> <p> However, you will either need to define <code class="computeroutput"><span class="identifier">BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING</span></code> or link with Boost.System. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.chrono_chrono_hpp.conf.deprecated_io"></a><a class="link" href="reference.html#chrono.reference.cpp0x.chrono_chrono_hpp.conf.deprecated_io" title="Deprecated IO">Deprecated IO</a> </h6></div></div></div> <p> Version 2.0.0 deprecates the preceding IO features. </p> <p> However the default version is always version 1. If you don't want to include the deprecated features you could define <code class="computeroutput"><span class="identifier">BOOST_CHRONO_DONT_PROVIDES_DEPRECATED_IO_SINCE_V2_0_0</span></code>. </p> </div> <div class="section"><div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.chrono_chrono_hpp.conf.system_clock_time_point"></a><a class="link" href="reference.html#chrono.reference.cpp0x.chrono_chrono_hpp.conf.system_clock_time_point" title="time_point&lt;system_clock,D&gt; specialization limitation">time_point&lt;system_clock,D&gt; specialization limitation</a> </h6></div></div></div></div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.chrono_chrono_hpp.conf.version"></a><a class="link" href="reference.html#chrono.reference.cpp0x.chrono_chrono_hpp.conf.version" title="Version">Version</a> </h6></div></div></div> <p> <code class="computeroutput"><span class="identifier">BOOST_CHRONO_VERSION</span></code> defines the Boost.Chrono version. The default version is 1. In this case the following breaking or extending macros are defined if the opposite is not requested: </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <code class="computeroutput"><span class="identifier">BOOST_CHRONO_PROVIDES_DEPRECATED_IO_SINCE_V2_0_0</span></code> </li></ul></div> <p> The user can request the version 2 by defining <code class="computeroutput"><span class="identifier">BOOST_CHRONO_VERSION</span></code> to 2. In this case the following breaking or extending macros are defined if the opposite is not requested: </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> Breaking change <code class="computeroutput"><span class="identifier">BOOST_CHRONO_DONT_PROVIDES_DEPRECATED_IO_SINCE_V2_0_0</span> </code> </li></ul></div> <p> The default value for <code class="computeroutput"><span class="identifier">BOOST_CHRONO_VERSION</span></code> will be changed to 2 since Boost 1.55. </p> </div> </div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.cpp0x.duration_hpp"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp" title="Header &lt;boost/chrono/duration.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">duration</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.duration_hpp.traits">Time-related Traits</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.duration_hpp.common_type_spe"><code class="computeroutput"><span class="identifier">common_type</span></code> Specialization</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.duration_hpp.duration">Class Template <code class="computeroutput"><span class="identifier">duration</span><span class="special">&lt;&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.duration_hpp.arith"><code class="computeroutput"><span class="identifier">duration</span></code> Non-Member Arithmetic</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.duration_hpp.cmp"><code class="computeroutput"><span class="identifier">duration</span></code> Non-Member Comparaisons</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.duration_hpp.duration_cast">Non-Member Function <code class="computeroutput"><span class="identifier">duration_cast</span><span class="special">(</span><span class="identifier">duration</span><span class="special">)</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.duration_hpp.duration_typedefs"><code class="computeroutput"><span class="identifier">duration</span></code> typedefs</a></span></dt> </dl></div> <p> This file contains duration specific classes and non-member functions. </p> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span> <span class="special">=</span> <code class="computeroutput"><span class="identifier">ratio</span></code><span class="special">&lt;</span><span class="number">1</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">;</span> <span class="special">}</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.common_type_spe" title="common_type Specialization"><code class="computeroutput"><span class="identifier">common_type</span></code></a><span class="special">&lt;</span><span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="special">&gt;;</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="comment">// customization traits</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits.treat_as_floating_point" title="Metafunction treat_as_floating_point&lt;&gt;"><code class="computeroutput"><span class="identifier">treat_as_floating_point</span></code></a><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits.duration_values" title="Class Template duration_values"><code class="computeroutput"><span class="identifier">duration_values</span></code></a><span class="special">;</span> <span class="comment">// duration arithmetic</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">typename</span> <span class="identifier">common_type</span><span class="special">&lt;</span><span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.arith.duration__op_plus_1" title="Non-Member Function operator+(duration,duration)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">+</span></code></a><span class="special">(</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">typename</span> <span class="identifier">common_type</span><span class="special">&lt;</span><span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.arith.duration__op_minus_1" title="Non-Member Function operator-(duration,duration)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">-</span></code></a><span class="special">(</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">common_type</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Rep2</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.arith.duration__op_mult_1" title="Non-Member Function operator*(duration,Rep1)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">*</span></code></a><span class="special">(</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">Rep2</span><span class="special">&amp;</span> <span class="identifier">s</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">common_type</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Rep2</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.arith.duration__op_mult_2" title="Non-Member Function operator*(Rep1,duration)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">*</span></code></a><span class="special">(</span> <span class="keyword">const</span> <span class="identifier">Rep1</span><span class="special">&amp;</span> <span class="identifier">s</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">common_type</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Rep2</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.arith.duration__op_div_2" title="Non-Member Function operator/(duration,duration)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">/</span></code></a><span class="special">(</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">Rep2</span><span class="special">&amp;</span> <span class="identifier">s</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">typename</span> <span class="identifier">common_type</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Rep2</span><span class="special">&gt;::</span><span class="identifier">type</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.arith.duration__op_div_3" title="Non-Member Function operator/(Rep1,duration)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">/</span></code></a><span class="special">(</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="preprocessor">#ifdef</span> <span class="identifier">BOOST_CHRONO_EXTENSIONS</span> <span class="comment">// Used to get frequency of events</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">double</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.arith.duration__op_div_1" title="Non-Member Function operator/(duration,Rep2)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">/</span></code></a><span class="special">(</span> <span class="keyword">const</span> <span class="identifier">Rep1</span><span class="special">&amp;</span> <span class="identifier">s</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">);</span> <span class="preprocessor">#endif</span> <span class="comment">// duration comparisons</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.cmp.duration__op_eq_1" title="Non-Member Function operator==(duration,duration)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">==</span></code></a><span class="special">(</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.cmp.duration__op_neq_1" title="Non-Member Function operator!=(duration,duration)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">!=</span></code></a><span class="special">(</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <span class="identifier">__duration__op_le_1</span><span class="special">(</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.cmp.duration__op_leq_1" title="Non-Member Function operator&lt;=(duration,duration)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">&lt;=</span></code></a><span class="special">(</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.cmp.duration__op_gt_1" title="Non-Member Function operator&gt;(duration,duration)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">&gt;</span></code></a><span class="special">(</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.cmp.duration__op_geq_1" title="Non-Member Function operator&gt;=(duration,duration)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">&gt;=</span></code></a><span class="special">(</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="comment">// duration_cast</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">ToDuration</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="identifier">ToDuration</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration_cast" title="Non-Member Function duration_cast(duration)"><code class="computeroutput"><span class="identifier">duration_cast</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">);</span> <span class="comment">// convenience typedefs</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">int_least64_t</span><span class="special">,</span> <span class="identifier">nano</span><span class="special">&gt;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration_typedefs" title="duration typedefs"><code class="computeroutput"><span class="identifier">nanoseconds</span></code></a><span class="special">;</span> <span class="comment">// at least 64 bits needed</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">int_least64_t</span><span class="special">,</span> <span class="identifier">micro</span><span class="special">&gt;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration_typedefs" title="duration typedefs"><code class="computeroutput"><span class="identifier">microseconds</span></code></a><span class="special">;</span> <span class="comment">// at least 55 bits needed</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">int_least64_t</span><span class="special">,</span> <span class="identifier">milli</span><span class="special">&gt;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration_typedefs" title="duration typedefs"><code class="computeroutput"><span class="identifier">milliseconds</span></code></a><span class="special">;</span> <span class="comment">// at least 45 bits needed</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">int_least64_t</span><span class="special">&gt;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration_typedefs" title="duration typedefs"><code class="computeroutput"><span class="identifier">seconds</span></code></a><span class="special">;</span> <span class="comment">// at least 35 bits needed</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">int_least32_t</span><span class="special">,</span> <span class="identifier">ratio</span><span class="special">&lt;</span> <span class="number">60</span><span class="special">&gt;</span> <span class="special">&gt;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration_typedefs" title="duration typedefs"><code class="computeroutput"><span class="identifier">minutes</span></code></a><span class="special">;</span> <span class="comment">// at least 29 bits needed</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">int_least32_t</span><span class="special">,</span> <span class="identifier">ratio</span><span class="special">&lt;</span><span class="number">3600</span><span class="special">&gt;</span> <span class="special">&gt;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration_typedefs" title="duration typedefs"><code class="computeroutput"><span class="identifier">hours</span></code></a><span class="special">;</span> <span class="comment">// at least 23 bits needed</span> <span class="special">}</span> <span class="special">}</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.traits"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits" title="Time-related Traits">Time-related Traits</a> </h5></div></div></div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.traits.treat_as_floating_point"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits.treat_as_floating_point" title="Metafunction treat_as_floating_point&lt;&gt;">Metafunction <code class="computeroutput"><span class="identifier">treat_as_floating_point</span><span class="special">&lt;&gt;</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">treat_as_floating_point</span> <span class="special">:</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_floating_point</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;</span> <span class="special">{};</span> </pre> <p> The <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> template uses the <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits.treat_as_floating_point" title="Metafunction treat_as_floating_point&lt;&gt;"><code class="computeroutput"><span class="identifier">treat_as_floating_point</span></code></a> trait to help determine if a <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> with one tick period can be converted to another <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> with a different tick period. If <code class="computeroutput"><span class="identifier">treat_as_floating_point</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;::</span><span class="identifier">value</span></code> is <code class="computeroutput"><span class="keyword">true</span></code>, then <code class="computeroutput"><span class="identifier">Rep</span></code> is a floating-point type and implicit conversions are allowed among <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>s. Otherwise, the implicit convertibility depends on the tick periods of the <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>s. If <code class="computeroutput"><span class="identifier">Rep</span></code> is a class type which emulates a floating-point type, the author of <code class="computeroutput"><span class="identifier">Rep</span></code> can specialize <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits.treat_as_floating_point" title="Metafunction treat_as_floating_point&lt;&gt;"><code class="computeroutput"><span class="identifier">treat_as_floating_point</span></code></a> so that <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> will treat this <code class="computeroutput"><span class="identifier">Rep</span></code> as if it were a floating-point type. Otherwise <code class="computeroutput"><span class="identifier">Rep</span></code> is assumed to be an integral type, or a class emulating an integral type. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.traits.duration_values"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits.duration_values" title="Class Template duration_values">Class Template <code class="computeroutput"><span class="identifier">duration_values</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">duration_values</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">Rep</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits.duration_values.zero" title="Static Member Function zero()"><code class="computeroutput"><span class="identifier">zero</span></code></a><span class="special">();</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">Rep</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits.duration_values.max" title="Static Member Function max()"><code class="computeroutput"><span class="identifier">max</span></code></a><span class="special">();</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">Rep</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits.duration_values.min" title="Static Member Function min()"><code class="computeroutput"><span class="identifier">min</span></code></a><span class="special">();</span> <span class="special">};</span> </pre> <p> The <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> template uses the <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits.duration_values" title="Class Template duration_values"><code class="computeroutput"><span class="identifier">duration_values</span></code></a> trait to construct special values of the <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>'s representation (<code class="computeroutput"><span class="identifier">Rep</span></code>). This is done because the representation might be a class type with behavior which requires some other implementation to return these special values. In that case, the author of that class type should specialize <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits.duration_values" title="Class Template duration_values"><code class="computeroutput"><span class="identifier">duration_values</span></code></a> to return the indicated values. </p> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.traits.duration_values.zero"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits.duration_values.zero" title="Static Member Function zero()">Static Member Function <code class="computeroutput"><span class="identifier">zero</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">Rep</span> <span class="identifier">zero</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">Rep</span><span class="special">(</span><span class="number">0</span><span class="special">)</span></code>. <span class="bold"><strong>Note:</strong></span> <code class="computeroutput"><span class="identifier">Rep</span><span class="special">(</span><span class="number">0</span><span class="special">)</span></code> is specified instead of <code class="computeroutput"><span class="identifier">Rep</span><span class="special">()</span></code> since <code class="computeroutput"><span class="identifier">Rep</span><span class="special">()</span></code> may have some other meaning, such as an uninitialized value. </p> <p> <span class="bold"><strong>Remarks:</strong></span> The value returned corresponds to the additive identity. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.traits.duration_values.max"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits.duration_values.max" title="Static Member Function max()">Static Member Function <code class="computeroutput"><span class="identifier">max</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">Rep</span> <span class="identifier">max</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">numeric_limits</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;::</span><span class="identifier">max</span><span class="special">()</span></code>. </p> <p> <span class="bold"><strong>Remarks:</strong></span> The value returned compares greater than zero(). </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.traits.duration_values.min"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits.duration_values.min" title="Static Member Function min()">Static Member Function <code class="computeroutput"><span class="identifier">min</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">Rep</span> <span class="identifier">min</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">numeric_limits</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;::</span><span class="identifier">lowest</span><span class="special">()</span></code>. </p> <p> <span class="bold"><strong>Remarks:</strong></span> The value returned compares less than or equal to <code class="computeroutput"><span class="identifier">zero</span><span class="special">()</span></code>. </p> </div> </div> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.common_type_spe"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.common_type_spe" title="common_type Specialization"><code class="computeroutput"><span class="identifier">common_type</span></code> Specialization</a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">struct</span> <code class="computeroutput"><span class="identifier">common_type</span></code><span class="special">&lt;</span><span class="identifier">chrono</span><span class="special">::</span><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;,</span> <span class="identifier">chrono</span><span class="special">::</span><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="special">{</span> <span class="keyword">typedef</span> <span class="identifier">chrono</span><span class="special">::</span><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="keyword">typename</span> <code class="computeroutput"><span class="identifier">common_type</span></code><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Rep2</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="emphasis"><em>see bellow</em></span><span class="special">&gt;</span> <span class="identifier">type</span><span class="special">;</span> <span class="special">};</span> </pre> <p> The period of the <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> indicated by this specialization of <code class="computeroutput"><span class="identifier">common_type</span></code> is the greatest common divisor of <code class="computeroutput"><span class="identifier">Period1</span></code> and <code class="computeroutput"><span class="identifier">Period2</span></code>. This can be computed by forming a <code class="computeroutput"><span class="identifier">ratio</span></code> of the greatest common divisor of <code class="computeroutput"><span class="identifier">Period1</span><span class="special">::</span><span class="identifier">num</span></code> and <code class="computeroutput"><span class="identifier">Period2</span><span class="special">::</span><span class="identifier">num</span></code>, and the least common multiple of <code class="computeroutput"><span class="identifier">Period1</span><span class="special">::</span><span class="identifier">den</span></code> and <code class="computeroutput"><span class="identifier">Period2</span><span class="special">::</span><span class="identifier">den</span></code>. </p> <p> <span class="bold"><strong>Note:</strong></span> The typedef type is the <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> with the largest tick period possible where both <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> arguments will convert to it without requiring a division operation. The representation of this type is intended to be able to hold any value resulting from this conversion, with the possible exception of round-off error when floating-point <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>s are involved (but not truncation error). </p> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;">Class Template <code class="computeroutput"><span class="identifier">duration</span><span class="special">&lt;&gt;</span></code></a> </h5></div></div></div> <p> A <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> measures time between two points in time (<a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a>). A <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> has a representation which holds a count of ticks, and a tick period. The tick period is the amount of time which occurs from one tick to another in units of a second. It is expressed as a rational constant using <code class="computeroutput"><span class="identifier">ratio</span></code>. </p> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">class</span> <span class="identifier">duration</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">typedef</span> <span class="identifier">Rep</span> <span class="identifier">rep</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">Period</span> <span class="identifier">period</span><span class="special">;</span> <span class="keyword">private</span><span class="special">:</span> <span class="identifier">rep</span> <span class="identifier">rep_</span><span class="special">;</span> <span class="comment">// exposition only</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.duration_c_0" title="Constructor duration()"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">();</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">explicit</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.duration_c_1" title="Constructor duration(const Rep2&amp;)"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">Rep2</span><span class="special">&amp;</span> <span class="identifier">r</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.duration_c_2" title="Constructor duration(const duration&amp;)"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">);</span> <span class="identifier">duration</span><span class="special">&amp;</span> <span class="keyword">operator</span><span class="special">=(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&amp;)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span> <span class="keyword">constexpr</span> <span class="identifier">rep</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.count" title="Member Function count() const"><code class="computeroutput"><span class="identifier">count</span></code></a><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">constexpr</span> <span class="identifier">duration</span> <span class="identifier">__duration__op_plus</span><span class="special">();</span> <span class="keyword">constexpr</span> <span class="identifier">duration</span> <span class="identifier">__duration__op_minus</span><span class="special">();</span> <span class="identifier">duration</span><span class="special">&amp;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_pre_inc" title="Member Function operator++()"><code class="computeroutput"><span class="keyword">operator</span><span class="special">++</span></code></a><span class="special">();</span> <span class="identifier">duration</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_post_inc" title="Member Function operator++(int)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">++</span></code></a><span class="special">(</span><span class="keyword">int</span><span class="special">);</span> <span class="identifier">duration</span><span class="special">&amp;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_pre_dec" title="Member Function operator--()"><code class="computeroutput"><span class="keyword">operator</span><span class="special">--</span></code></a><span class="special">();</span> <span class="identifier">duration</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_post_dec" title="Member Function operator--(int)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">--</span></code></a><span class="special">(</span><span class="keyword">int</span><span class="special">);</span> <span class="identifier">duration</span><span class="special">&amp;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_plus_eq" title="Member Function operator+=(const duration&amp;)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">+=</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">);</span> <span class="identifier">duration</span><span class="special">&amp;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_minus_eq" title="Member Function operator-=(const duration&amp;)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">-=</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">);</span> <span class="identifier">duration</span><span class="special">&amp;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_mult_eq" title="Member Function operator*=(const rep&amp;)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">*=</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">rep</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="identifier">duration</span><span class="special">&amp;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_div_eq" title="Member Function operator/=(const rep&amp;)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">/=</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">rep</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="identifier">duration</span><span class="special">&amp;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_mod_eq" title="Member Function operator%=(const duration&amp;)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">%=</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">rep</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="identifier">duration</span><span class="special">&amp;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_mod_eq2" title="Member Function operator%=(const rep&amp;)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">%=</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">duration</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.zero" title="Static Member Function zero()"><code class="computeroutput"><span class="identifier">zero</span></code></a><span class="special">();</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">duration</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.min" title="Static Member Function min()"><code class="computeroutput"><span class="identifier">min</span></code></a><span class="special">();</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">duration</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.max" title="Static Member Function max()"><code class="computeroutput"><span class="identifier">max</span></code></a><span class="special">();</span> <span class="special">};</span> <span class="special">}}</span> </pre> <p> <code class="computeroutput"><span class="identifier">Rep</span></code> must be an arithmetic type, or a class emulating an arithmetic type, compile diagnostic otherwise. If <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> is instantiated with the type of <code class="computeroutput"><span class="identifier">Rep</span></code> being a <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>, compile diagnostic is issued. </p> <p> <code class="computeroutput"><span class="identifier">Period</span></code> must be an instantiation of <code class="computeroutput"><span class="identifier">ratio</span></code>, compile diagnostic otherwise. </p> <p> <code class="computeroutput"><span class="identifier">Period</span><span class="special">::</span><span class="identifier">num</span></code> must be positive, compile diagnostic otherwise. </p> <p> Examples: </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="keyword">long</span><span class="special">,</span> <code class="computeroutput"><span class="identifier">ratio</span></code><span class="special">&lt;</span><span class="number">60</span><span class="special">&gt;</span> <span class="special">&gt;</span></code> holds a count of minutes using a long. </li> <li class="listitem"> <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="keyword">long</span> <span class="keyword">long</span><span class="special">,</span> <span class="identifier">milli</span><span class="special">&gt;</span></code> holds a count of milliseconds using a long long. </li> <li class="listitem"> <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">,</span> <code class="computeroutput"><span class="identifier">ratio</span></code><span class="special">&lt;</span><span class="number">1</span><span class="special">,</span> <span class="number">30</span><span class="special">&gt;</span> <span class="special">&gt;</span></code> holds a count using a double with a tick period of 1/30 second (a tick frequency of 30 Hz). </li> </ul></div> <p> The following members of <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> do not throw an exception unless the indicated operations on the representations throw an exception. </p> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.duration_c_0"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.duration_c_0" title="Constructor duration()">Constructor <code class="computeroutput"><span class="identifier">duration</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">constexpr</span> <span class="identifier">duration</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Constructs an object of type <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> initialized from <code class="computeroutput"><span class="identifier">duration_values</span><span class="special">&lt;</span><span class="identifier">rep</span><span class="special">&gt;::</span><span class="identifier">zero</span><span class="special">()</span></code> in C++98 or <code class="computeroutput"><span class="identifier">BOOST_CHRONO_DURATION_DEFAULTS_TO_ZERO</span></code> is defined, otherwise the duration is uninitialized. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.duration_c_1"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.duration_c_1" title="Constructor duration(const Rep2&amp;)">Constructor <code class="computeroutput"><span class="identifier">duration</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">Rep2</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">explicit</span> <span class="identifier">duration</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">Rep2</span><span class="special">&amp;</span> <span class="identifier">r</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Remarks:</strong></span> <code class="computeroutput"><span class="identifier">Rep2</span></code> is implicitly convertible to <code class="computeroutput"><span class="identifier">rep</span></code>, and </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <code class="computeroutput"><span class="identifier">treat_as_floating_point</span><span class="special">&lt;</span><span class="identifier">rep</span><span class="special">&gt;::</span><span class="identifier">value</span></code> is <code class="computeroutput"><span class="keyword">true</span></code>, or </li> <li class="listitem"> <code class="computeroutput"><span class="special">!</span><span class="identifier">treat_as_floating_point</span><span class="special">&lt;</span><span class="identifier">rep</span><span class="special">&gt;::</span><span class="identifier">value</span> <span class="special">&amp;&amp;</span> <span class="special">!</span><span class="identifier">treat_as_floating_point</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">&gt;::</span><span class="identifier">value</span></code> is <code class="computeroutput"><span class="keyword">true</span></code>. </li> </ul></div> <p> If these constraints are not met, this constructor will not participate in overload resolution. <span class="bold"><strong>Note:</strong></span> This requirement prevents construction of an integral-based <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> with a floating-point representation. Such a construction could easily lead to confusion about the value of the <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>. </p> <p> <span class="bold"><strong>Example:</strong></span> </p> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="identifier">milli</span><span class="special">&gt;</span> <span class="identifier">d</span><span class="special">(</span><span class="number">3.5</span><span class="special">);</span> <span class="comment">// do not compile</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="identifier">milli</span><span class="special">&gt;</span> <span class="identifier">d</span><span class="special">(</span><span class="number">3</span><span class="special">);</span> <span class="comment">// ok</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Constructs an object of type <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>. </p> <p> <span class="bold"><strong>Post Conditions:</strong></span> <code class="computeroutput"><span class="identifier">count</span><span class="special">()</span> <span class="special">==</span> <span class="keyword">static_cast</span><span class="special">&lt;</span><span class="identifier">rep</span><span class="special">&gt;(</span><span class="identifier">r</span><span class="special">)</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.duration_c_2"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.duration_c_2" title="Constructor duration(const duration&amp;)">Constructor <code class="computeroutput"><span class="identifier">duration</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Remarks:</strong></span> <code class="computeroutput"><span class="identifier">treat_as_floating_point</span><span class="special">&lt;</span><span class="identifier">rep</span><span class="special">&gt;::</span><span class="identifier">value</span></code>, or <code class="computeroutput"><span class="identifier">ratio_divide</span><span class="special">&lt;</span><span class="identifier">Period2</span><span class="special">,</span> <span class="identifier">period</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">::</span><span class="identifier">den</span> <span class="special">==</span> <span class="number">1</span></code>, else this constructor will not participate in overload resolution. <span class="bold"><strong>note</strong></span> This requirement prevents implicit truncation error when converting between integral-based <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>s. Such a construction could easily lead to confusion about the value of the <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>. </p> <p> <span class="bold"><strong>Example:</strong></span> </p> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="identifier">milli</span><span class="special">&gt;</span> <span class="identifier">ms</span><span class="special">(</span><span class="number">3</span><span class="special">);</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="identifier">micro</span><span class="special">&gt;</span> <span class="identifier">us</span> <span class="special">=</span> <span class="identifier">ms</span><span class="special">;</span> <span class="comment">// ok</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="identifier">milli</span><span class="special">&gt;</span> <span class="identifier">ms2</span> <span class="special">=</span> <span class="identifier">us</span><span class="special">;</span> <span class="comment">// do not compile</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Constructs an object of type <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>, constructing <code class="computeroutput"><span class="identifier">rep_</span></code> from <code class="computeroutput"><span class="identifier">duration_cast</span><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&gt;(</span><span class="identifier">d</span><span class="special">).</span><span class="identifier">count</span><span class="special">()</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.count"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.count" title="Member Function count() const">Member Function <code class="computeroutput"><span class="identifier">count</span><span class="special">()</span> <span class="keyword">const</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">constexpr</span> <span class="identifier">rep</span> <span class="identifier">count</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">rep_</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.op_unary_plus"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_unary_plus" title="Member Function operator+() const">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">+()</span> <span class="keyword">const</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> <span class="keyword">operator</span><span class="special">+()</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.op_unary_minus"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_unary_minus" title="Member Function operator-() const">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">-()</span> <span class="keyword">const</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> <span class="keyword">operator</span><span class="special">-()</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">(-</span><span class="identifier">rep_</span><span class="special">)</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.op_pre_inc"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_pre_inc" title="Member Function operator++()">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">++()</span></code></a> </h6></div></div></div> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&amp;</span> <span class="keyword">operator</span><span class="special">++();</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> <code class="computeroutput"><span class="special">++</span><span class="identifier">rep_</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.op_post_inc"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_post_inc" title="Member Function operator++(int)">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">++(</span><span class="keyword">int</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> <span class="keyword">operator</span><span class="special">++(</span><span class="keyword">int</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">(</span><span class="identifier">rep_</span><span class="special">++)</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.op_pre_dec"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_pre_dec" title="Member Function operator--()">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">--()</span></code></a> </h6></div></div></div> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&amp;</span> <span class="keyword">operator</span><span class="special">--();</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> <code class="computeroutput"><span class="special">--</span><span class="identifier">rep_</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.op_post_dec"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_post_dec" title="Member Function operator--(int)">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">--(</span><span class="keyword">int</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> <span class="keyword">operator</span><span class="special">--(</span><span class="keyword">int</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">(</span><span class="identifier">rep_</span><span class="special">--)</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.op_plus_eq"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_plus_eq" title="Member Function operator+=(const duration&amp;)">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">+=(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&amp;</span> <span class="keyword">operator</span><span class="special">+=(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> <code class="computeroutput"><span class="identifier">rep_</span> <span class="special">+=</span> <span class="identifier">d</span><span class="special">.</span><span class="identifier">count</span><span class="special">()</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.op_minus_eq"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_minus_eq" title="Member Function operator-=(const duration&amp;)">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">-=(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&amp;</span> <span class="keyword">operator</span><span class="special">-=(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> <code class="computeroutput"><span class="identifier">rep_</span> <span class="special">-=</span> <span class="identifier">d</span><span class="special">.</span><span class="identifier">count</span><span class="special">()</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.op_mod_eq"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_mod_eq" title="Member Function operator%=(const duration&amp;)">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">%=(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&amp;</span> <span class="keyword">operator</span><span class="special">%=(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> <code class="computeroutput"><span class="identifier">rep_</span> <span class="special">%=</span> <span class="identifier">d</span><span class="special">.</span><span class="identifier">count</span><span class="special">()</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.op_mult_eq"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_mult_eq" title="Member Function operator*=(const rep&amp;)">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">*=(</span><span class="keyword">const</span> <span class="identifier">rep</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&amp;</span> <span class="keyword">operator</span><span class="special">*=(</span><span class="keyword">const</span> <span class="identifier">rep</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> <code class="computeroutput"><span class="identifier">rep_</span> <span class="special">*=</span> <span class="identifier">rhs</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.op_div_eq"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_div_eq" title="Member Function operator/=(const rep&amp;)">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">/=(</span><span class="keyword">const</span> <span class="identifier">rep</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&amp;</span> <span class="keyword">operator</span><span class="special">/=(</span><span class="keyword">const</span> <span class="identifier">rep</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> <code class="computeroutput"><span class="identifier">rep_</span> <span class="special">/=</span> <span class="identifier">rhs</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.op_mod_eq2"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.op_mod_eq2" title="Member Function operator%=(const rep&amp;)">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">%=(</span><span class="keyword">const</span> <span class="identifier">rep</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&amp;</span> <span class="keyword">operator</span><span class="special">%=(</span><span class="keyword">const</span> <span class="identifier">rep</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> <code class="computeroutput"><span class="identifier">rep_</span> <span class="special">%=</span> <span class="identifier">rhs</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.zero"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.zero" title="Static Member Function zero()">Static Member Function <code class="computeroutput"><span class="identifier">zero</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> <span class="identifier">zero</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">(</span><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits.duration_values" title="Class Template duration_values"><code class="computeroutput"><span class="identifier">duration_values</span></code></a><span class="special">&lt;</span><span class="identifier">rep</span><span class="special">&gt;::</span><span class="identifier">zero</span><span class="special">())</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.min"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.min" title="Static Member Function min()">Static Member Function <code class="computeroutput"><span class="identifier">min</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> <span class="identifier">min</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">(</span><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits.duration_values" title="Class Template duration_values"><code class="computeroutput"><span class="identifier">duration_values</span></code></a><span class="special">&lt;</span><span class="identifier">rep</span><span class="special">&gt;::</span><span class="identifier">min</span><span class="special">()).</span></code> </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration.max"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration.max" title="Static Member Function max()">Static Member Function <code class="computeroutput"><span class="identifier">max</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> <span class="identifier">max</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">(</span><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits.duration_values" title="Class Template duration_values"><code class="computeroutput"><span class="identifier">duration_values</span></code></a><span class="special">&lt;</span><span class="identifier">rep</span><span class="special">&gt;::</span><span class="identifier">max</span><span class="special">())</span></code>. </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.arith"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.arith" title="duration Non-Member Arithmetic"><code class="computeroutput"><span class="identifier">duration</span></code> Non-Member Arithmetic</a> </h5></div></div></div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.arith.duration__op_plus_1"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.arith.duration__op_plus_1" title="Non-Member Function operator+(duration,duration)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">+(</span><span class="identifier">duration</span><span class="special">,</span><span class="identifier">duration</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">typename</span> <code class="computeroutput"><span class="identifier">common_type</span></code><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span> <span class="keyword">operator</span><span class="special">+(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">CD</span><span class="special">(</span><span class="identifier">CD</span><span class="special">(</span><span class="identifier">lhs</span><span class="special">).</span><span class="identifier">count</span><span class="special">()</span> <span class="special">+</span> <span class="identifier">CD</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">).</span><span class="identifier">count</span><span class="special">())</span></code> where <code class="computeroutput"><span class="identifier">CD</span></code> is the type of the return value. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.arith.duration__op_minus_1"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.arith.duration__op_minus_1" title="Non-Member Function operator-(duration,duration)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">-(</span><span class="identifier">duration</span><span class="special">,</span><span class="identifier">duration</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">typename</span> <code class="computeroutput"><span class="identifier">common_type</span></code><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span> <span class="keyword">operator</span><span class="special">-(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">CD</span><span class="special">(</span><span class="identifier">CD</span><span class="special">(</span><span class="identifier">lhs</span><span class="special">).</span><span class="identifier">count</span><span class="special">()</span> <span class="special">-</span> <span class="identifier">CD</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">).</span><span class="identifier">count</span><span class="special">())</span></code> where <code class="computeroutput"><span class="identifier">CD</span></code> is the type of the return value. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.arith.duration__op_mult_1"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.arith.duration__op_mult_1" title="Non-Member Function operator*(duration,Rep1)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">*(</span><span class="identifier">duration</span><span class="special">,</span><span class="identifier">Rep1</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="keyword">typename</span> <code class="computeroutput"><span class="identifier">common_type</span></code><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Rep2</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">operator</span><span class="special">*(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">Rep2</span><span class="special">&amp;</span> <span class="identifier">s</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Requires:</strong></span> Let <code class="computeroutput"><span class="identifier">CR</span></code> represent the <code class="computeroutput"><span class="identifier">common_type</span></code> of <code class="computeroutput"><span class="identifier">Rep1</span></code> and <code class="computeroutput"><span class="identifier">Rep2</span></code>. This function will not participate in overload resolution unless both <code class="computeroutput"><span class="identifier">Rep1</span></code> and <code class="computeroutput"><span class="identifier">Rep2</span></code> are implicitly convertible to <code class="computeroutput"><span class="identifier">CR</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">CD</span><span class="special">(</span><span class="identifier">CD</span><span class="special">(</span><span class="identifier">d</span><span class="special">).</span><span class="identifier">count</span><span class="special">()</span> <span class="special">*</span> <span class="identifier">s</span><span class="special">)</span></code> where <code class="computeroutput"><span class="identifier">CD</span></code> is the type of the return value. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.arith.duration__op_mult_2"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.arith.duration__op_mult_2" title="Non-Member Function operator*(Rep1,duration)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">*(</span><span class="identifier">Rep1</span><span class="special">,</span><span class="identifier">duration</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="keyword">typename</span> <code class="computeroutput"><span class="identifier">common_type</span></code><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Rep2</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">operator</span><span class="special">*(</span><span class="keyword">const</span> <span class="identifier">Rep1</span><span class="special">&amp;</span> <span class="identifier">s</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Requires:</strong></span> Let <code class="computeroutput"><span class="identifier">CR</span></code> represent the <code class="computeroutput"><span class="identifier">common_type</span></code> of <code class="computeroutput"><span class="identifier">Rep1</span></code> and <code class="computeroutput"><span class="identifier">Rep2</span></code>. This function will not participate in overload resolution unless both <code class="computeroutput"><span class="identifier">Rep1</span></code> and <code class="computeroutput"><span class="identifier">Rep2</span></code> are implicitly convertible to <code class="computeroutput"><span class="identifier">CR</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">d</span> <span class="special">*</span> <span class="identifier">s</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.arith.duration__op_div_1"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.arith.duration__op_div_1" title="Non-Member Function operator/(duration,Rep2)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">/(</span><span class="identifier">duration</span><span class="special">,</span><span class="identifier">Rep2</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="keyword">typename</span> <code class="computeroutput"><span class="identifier">common_type</span></code><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Rep2</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">operator</span><span class="special">/(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">Rep2</span><span class="special">&amp;</span> <span class="identifier">s</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Requires:</strong></span> Let <code class="computeroutput"><span class="identifier">CR</span></code> represent the <code class="computeroutput"><span class="identifier">common_type</span></code> of <code class="computeroutput"><span class="identifier">Rep1</span></code> and <code class="computeroutput"><span class="identifier">Rep2</span></code>. This function will not participate in overload resolution unless both <code class="computeroutput"><span class="identifier">Rep1</span></code> and <code class="computeroutput"><span class="identifier">Rep2</span></code> are implicitly convertible to <code class="computeroutput"><span class="identifier">CR</span></code>, and <code class="computeroutput"><span class="identifier">Rep2</span></code> is not an instantiation of <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">CD</span><span class="special">(</span><span class="identifier">CD</span><span class="special">(</span><span class="identifier">d</span><span class="special">).</span><span class="identifier">count</span><span class="special">()</span> <span class="special">/</span> <span class="identifier">s</span><span class="special">)</span></code> where <code class="computeroutput"><span class="identifier">CD</span></code> is the type of the return value. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.arith.duration__op_div_2"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.arith.duration__op_div_2" title="Non-Member Function operator/(duration,duration)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">/(</span><span class="identifier">duration</span><span class="special">,</span><span class="identifier">duration</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">typename</span> <code class="computeroutput"><span class="identifier">common_type</span></code><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Rep2</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="keyword">operator</span><span class="special">/(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Remarks:</strong></span> Let <code class="computeroutput"><span class="identifier">CD</span></code> represent the <code class="computeroutput"><span class="identifier">common_type</span></code> of the two <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> arguments. <span class="bold"><strong>Returns:</strong></span> Returns <code class="computeroutput"><span class="identifier">CD</span><span class="special">(</span><span class="identifier">lhs</span><span class="special">).</span><span class="identifier">count</span><span class="special">()</span> <span class="special">/</span> <span class="identifier">CD</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">).</span><span class="identifier">count</span><span class="special">()</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.arith.duration__op_div_3"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.arith.duration__op_div_3" title="Non-Member Function operator/(Rep1,duration)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">/(</span><span class="identifier">Rep1</span><span class="special">,</span><span class="identifier">duration</span><span class="special">)</span></code></a> </h6></div></div></div> <p> Included only if BOOST_CHRONO_EXTENSIONS is defined. </p> <p> This overloading could be used to get the frequency of an event counted by <code class="computeroutput"><span class="identifier">Rep1</span></code>. </p> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">double</span> <span class="keyword">operator</span><span class="special">/(</span><span class="keyword">const</span> <span class="identifier">Rep1</span><span class="special">&amp;</span> <span class="identifier">s</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Remarks:</strong></span> Let <code class="computeroutput"><span class="identifier">CR</span></code> represent the <code class="computeroutput"><span class="identifier">common_type</span></code> of <code class="computeroutput"><span class="identifier">Rep1</span></code> and <code class="computeroutput"><span class="identifier">Rep2</span></code>. This function will not participate in overload resolution unless both <code class="computeroutput"><span class="identifier">Rep1</span></code> and <code class="computeroutput"><span class="identifier">Rep2</span></code> are implicitly convertible to <code class="computeroutput"><span class="identifier">CR</span></code>, and <code class="computeroutput"><span class="identifier">Rep1</span></code> is not an instantiation of <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>. Let <code class="computeroutput"><span class="identifier">CD</span></code> represent <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>&lt;CR,Period&gt;. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">CR</span><span class="special">(</span><span class="identifier">s</span><span class="special">)/</span><span class="identifier">CD</span><span class="special">(</span><span class="identifier">d</span><span class="special">).</span><span class="identifier">count</span><span class="special">()</span></code> where <code class="computeroutput"><span class="identifier">CD</span></code> is the type of the return value. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.arith.duration__op_mod_1"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.arith.duration__op_mod_1" title="Non-Member Function operator%(duration,Rep2)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">%(</span><span class="identifier">duration</span><span class="special">,</span><span class="identifier">Rep2</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="keyword">typename</span> <code class="computeroutput"><span class="identifier">common_type</span></code><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Rep2</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">operator</span><span class="special">%(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">Rep2</span><span class="special">&amp;</span> <span class="identifier">s</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Remarks:</strong></span> Let <code class="computeroutput"><span class="identifier">CR</span></code> represent the <code class="computeroutput"><span class="identifier">common_type</span></code> of <code class="computeroutput"><span class="identifier">Rep1</span></code> and <code class="computeroutput"><span class="identifier">Rep2</span></code>. This function will not participate in overload resolution unless Rep2 must be implicitly convertible to CR and Rep2 must not be an instantiation of <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>. </p> <p> <span class="bold"><strong>Returns:</strong></span> CD(CD(d).count() % s) where <code class="computeroutput"><span class="identifier">CD</span></code> is the type of the return value. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.arith.duration__op_mod_2"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.arith.duration__op_mod_2" title="Non-Member Function operator%(duration,duration)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">%(</span><span class="identifier">duration</span><span class="special">,</span><span class="identifier">duration</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">typename</span> <code class="computeroutput"><span class="identifier">common_type</span></code><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span> <span class="keyword">operator</span><span class="special">%(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Remarks:</strong></span> This function will not participate in overload resolution unless </p> <p> <span class="bold"><strong>Returns:</strong></span> CD(CD(lhs).count() % CD(rhs).count()) where <code class="computeroutput"><span class="identifier">CD</span></code> is the type of the return value. </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.cmp"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.cmp" title="duration Non-Member Comparaisons"><code class="computeroutput"><span class="identifier">duration</span></code> Non-Member Comparaisons</a> </h5></div></div></div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.cmp.duration__op_eq_1"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.cmp.duration__op_eq_1" title="Non-Member Function operator==(duration,duration)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">==(</span><span class="identifier">duration</span><span class="special">,</span><span class="identifier">duration</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">==(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> Let <code class="computeroutput"><span class="identifier">CD</span></code> represent the <code class="computeroutput"><span class="identifier">common_type</span></code> of the two <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> arguments. </p> <p> <span class="bold"><strong>Returns:</strong></span> Returns <code class="computeroutput"><span class="identifier">CD</span><span class="special">(</span><span class="identifier">lhs</span><span class="special">).</span><span class="identifier">count</span><span class="special">()</span> <span class="special">==</span> <span class="identifier">CD</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">).</span><span class="identifier">count</span><span class="special">()</span></code> </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.cmp.duration__op_neq_1"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.cmp.duration__op_neq_1" title="Non-Member Function operator!=(duration,duration)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">!=(</span><span class="identifier">duration</span><span class="special">,</span><span class="identifier">duration</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">!=(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">!(</span><span class="identifier">lhs</span> <span class="special">==</span> <span class="identifier">rhs</span><span class="special">)</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.cmp.duration__op_lt_1"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.cmp.duration__op_lt_1" title="Non-Member Function operator&lt;(duration,duration)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">&lt;(</span><span class="identifier">duration</span><span class="special">,</span><span class="identifier">duration</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">&lt;</span> <span class="special">(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> Let <code class="computeroutput"><span class="identifier">CD</span></code> represent the <code class="computeroutput"><span class="identifier">common_type</span></code> of the two <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> arguments. Returns <code class="computeroutput"><span class="identifier">CD</span><span class="special">(</span><span class="identifier">lhs</span><span class="special">).</span><span class="identifier">count</span><span class="special">()</span> <span class="special">&lt;</span> <span class="identifier">CD</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">).</span><span class="identifier">count</span><span class="special">()</span></code> </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.cmp.duration__op_leq_1"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.cmp.duration__op_leq_1" title="Non-Member Function operator&lt;=(duration,duration)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">&lt;=(</span><span class="identifier">duration</span><span class="special">,</span><span class="identifier">duration</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">&lt;=(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">!(</span><span class="identifier">rhs</span> <span class="special">&lt;</span> <span class="identifier">lhs</span><span class="special">)</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.cmp.duration__op_gt_1"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.cmp.duration__op_gt_1" title="Non-Member Function operator&gt;(duration,duration)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">&gt;(</span><span class="identifier">duration</span><span class="special">,</span><span class="identifier">duration</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">&gt;</span> <span class="special">(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">rhs</span> <span class="special">&lt;</span> <span class="identifier">lhs</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.cmp.duration__op_geq_1"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.cmp.duration__op_geq_1" title="Non-Member Function operator&gt;=(duration,duration)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">&gt;=(</span><span class="identifier">duration</span><span class="special">,</span><span class="identifier">duration</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">&gt;=(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">!(</span><span class="identifier">lhs</span> <span class="special">&lt;</span> <span class="identifier">rhs</span><span class="special">)</span></code>. </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration_cast"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration_cast" title="Non-Member Function duration_cast(duration)">Non-Member Function <code class="computeroutput"><span class="identifier">duration_cast</span><span class="special">(</span><span class="identifier">duration</span><span class="special">)</span></code></a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">ToDuration</span></code></a><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">ToDuration</span></code></a> <span class="identifier">duration_cast</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Requires:</strong></span> This function will not participate in overload resolution unless <code class="computeroutput"><span class="identifier">ToDuration</span></code> is an instantiation of <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>. </p> <p> <span class="bold"><strong>Returns:</strong></span> Forms <code class="computeroutput"><span class="identifier">CF</span></code> which is a <code class="computeroutput"><span class="identifier">ratio</span></code> resulting from <code class="computeroutput"><span class="identifier">ratio_divide</span><span class="special">&lt;</span><span class="identifier">Period</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">ToDuration</span><span class="special">::</span><span class="identifier">period</span><span class="special">&gt;::</span><span class="identifier">type</span></code>. Let <code class="computeroutput"><span class="identifier">CR</span></code> be the <code class="computeroutput"><span class="identifier">common_type</span></code> of <code class="computeroutput"><span class="identifier">ToDuration</span><span class="special">::</span><span class="identifier">rep</span></code>, <code class="computeroutput"><span class="identifier">Rep</span></code>, and <code class="computeroutput"><span class="identifier">intmax_t</span></code>. </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> If <code class="computeroutput"><span class="identifier">CF</span><span class="special">::</span><span class="identifier">num</span> <span class="special">==</span> <span class="number">1</span></code> and <code class="computeroutput"><span class="identifier">CF</span><span class="special">::</span><span class="identifier">den</span> <span class="special">==</span> <span class="number">1</span></code>, then returns <code class="computeroutput"><span class="identifier">ToDuration</span><span class="special">(</span><span class="keyword">static_cast</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">ToDuration</span><span class="special">::</span><span class="identifier">rep</span><span class="special">&gt;(</span><span class="identifier">d</span><span class="special">.</span><span class="identifier">count</span><span class="special">()))</span> </code> </li> <li class="listitem"> else if <code class="computeroutput"><span class="identifier">CF</span><span class="special">::</span><span class="identifier">num</span> <span class="special">!=</span> <span class="number">1</span></code> and <code class="computeroutput"><span class="identifier">CF</span><span class="special">::</span><span class="identifier">den</span> <span class="special">==</span> <span class="number">1</span></code>, then returns <code class="computeroutput"><span class="identifier">ToDuration</span><span class="special">(</span><span class="keyword">static_cast</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">ToDuration</span><span class="special">::</span><span class="identifier">rep</span><span class="special">&gt;(</span><span class="keyword">static_cast</span><span class="special">&lt;</span><span class="identifier">CR</span><span class="special">&gt;(</span><span class="identifier">d</span><span class="special">.</span><span class="identifier">count</span><span class="special">())</span> <span class="special">*</span> <span class="keyword">static_cast</span><span class="special">&lt;</span><span class="identifier">CR</span><span class="special">&gt;(</span><span class="identifier">CF</span><span class="special">::</span><span class="identifier">num</span><span class="special">)))</span></code> </li> <li class="listitem"> else if <code class="computeroutput"><span class="identifier">CF</span><span class="special">::</span><span class="identifier">num</span> <span class="special">==</span> <span class="number">1</span></code> and <code class="computeroutput"><span class="identifier">CF</span><span class="special">::</span><span class="identifier">den</span> <span class="special">!=</span> <span class="number">1</span></code>, then returns <code class="computeroutput"><span class="identifier">ToDuration</span><span class="special">(</span><span class="keyword">static_cast</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">ToDuration</span><span class="special">::</span><span class="identifier">rep</span><span class="special">&gt;(</span><span class="keyword">static_cast</span><span class="special">&lt;</span><span class="identifier">CR</span><span class="special">&gt;(</span><span class="identifier">d</span><span class="special">.</span><span class="identifier">count</span><span class="special">())</span> <span class="special">/</span> <span class="keyword">static_cast</span><span class="special">&lt;</span><span class="identifier">CR</span><span class="special">&gt;(</span><span class="identifier">CF</span><span class="special">::</span><span class="identifier">den</span><span class="special">)))</span></code> </li> <li class="listitem"> else returns <code class="computeroutput"><span class="identifier">ToDuration</span><span class="special">(</span><span class="keyword">static_cast</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">ToDuration</span><span class="special">::</span><span class="identifier">rep</span><span class="special">&gt;(</span><span class="keyword">static_cast</span><span class="special">&lt;</span><span class="identifier">CR</span><span class="special">&gt;(</span><span class="identifier">d</span><span class="special">.</span><span class="identifier">count</span><span class="special">())</span> <span class="special">*</span> <span class="keyword">static_cast</span><span class="special">&lt;</span><span class="identifier">CR</span><span class="special">&gt;(</span><span class="identifier">CF</span><span class="special">::</span><span class="identifier">num</span><span class="special">)</span> <span class="special">/</span> <span class="keyword">static_cast</span><span class="special">&lt;</span><span class="identifier">CR</span><span class="special">&gt;(</span><span class="identifier">CF</span><span class="special">::</span><span class="identifier">den</span><span class="special">)))</span></code> </li> </ul></div> <p> <span class="bold"><strong>Remarks:</strong></span> This function does not rely on any implicit conversions. All conversions must be accomplished through <code class="computeroutput"><span class="keyword">static_cast</span></code>. The implementation avoids all multiplications or divisions when it is known at compile-time that it can be avoided because one or more arguments are <code class="computeroutput"><span class="number">1</span></code>. All intermediate computations are carried out in the widest possible representation and only converted to the destination representation at the final step. </p> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.duration_hpp.duration_typedefs"></a><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration_typedefs" title="duration typedefs"><code class="computeroutput"><span class="identifier">duration</span></code> typedefs</a> </h5></div></div></div> <pre class="programlisting"><span class="comment">// convenience typedefs</span> <span class="keyword">typedef</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">int_least64_t</span><span class="special">,</span> <span class="identifier">nano</span><span class="special">&gt;</span> <span class="identifier">nanoseconds</span><span class="special">;</span> <span class="comment">// at least 64 bits needed</span> <span class="keyword">typedef</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">int_least64_t</span><span class="special">,</span> <span class="identifier">micro</span><span class="special">&gt;</span> <span class="identifier">microseconds</span><span class="special">;</span> <span class="comment">// at least 55 bits needed</span> <span class="keyword">typedef</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">int_least64_t</span><span class="special">,</span> <span class="identifier">milli</span><span class="special">&gt;</span> <span class="identifier">milliseconds</span><span class="special">;</span> <span class="comment">// at least 45 bits needed</span> <span class="keyword">typedef</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">int_least64_t</span><span class="special">&gt;</span> <span class="identifier">seconds</span><span class="special">;</span> <span class="comment">// at least 35 bits needed</span> <span class="keyword">typedef</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">int_least32_t</span><span class="special">,</span> <code class="computeroutput"><span class="identifier">ratio</span></code><span class="special">&lt;</span> <span class="number">60</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">minutes</span><span class="special">;</span> <span class="comment">// at least 29 bits needed</span> <span class="keyword">typedef</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">int_least32_t</span><span class="special">,</span> <code class="computeroutput"><span class="identifier">ratio</span></code><span class="special">&lt;</span><span class="number">3600</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">hours</span><span class="special">;</span> <span class="comment">// at least 23 bits needed</span> </pre> </div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.cpp0x.clock"></a><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code> Requirements</a> </h4></div></div></div> <p> A clock represents a bundle consisting of a <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>, a <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a>, and a function <code class="computeroutput"><span class="identifier">now</span><span class="special">()</span></code> to get the current <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a>. A clock must meet the requirements in the following Table. </p> <p> In this table <code class="computeroutput"><span class="identifier">C1</span></code> and <code class="computeroutput"><span class="identifier">C2</span></code> denote <code class="computeroutput"><span class="identifier">Clock</span></code> types. <code class="computeroutput"><span class="identifier">t1</span></code> and <code class="computeroutput"><span class="identifier">t2</span></code> are values returned from <code class="computeroutput"><span class="identifier">C1</span><span class="special">::</span><span class="identifier">now</span><span class="special">()</span></code> where the call returning <code class="computeroutput"><span class="identifier">t1</span></code> happens before the call returning <code class="computeroutput"><span class="identifier">t2</span></code> and both of these calls occur before <code class="computeroutput"><span class="identifier">C1</span><span class="special">::</span><span class="identifier">time_point</span><span class="special">::</span><span class="identifier">max</span><span class="special">()</span></code>. (note This means C1 did not wrap around between t1 and t2.). </p> <div class="table"> <a name="chrono.reference.cpp0x.clock.clock_requirements"></a><p class="title"><b>Table&#160;7.1.&#160;Clock Requirements</b></p> <div class="table-contents"><table class="table" summary="Clock Requirements"> <colgroup> <col> <col> <col> </colgroup> <thead><tr> <th> <p> expression </p> </th> <th> <p> return type </p> </th> <th> <p> operational semantics </p> </th> </tr></thead> <tbody> <tr> <td> <p> <code class="computeroutput"><span class="identifier">C1</span><span class="special">::</span><span class="identifier">rep</span></code> </p> </td> <td> <p> An arithmetic type or class emulating an arithmetic type. </p> </td> <td> <p> The representation type of the <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> and <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a>. </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="identifier">C1</span><span class="special">::</span><span class="identifier">period</span></code> </p> </td> <td> <p> <code class="computeroutput"><span class="identifier">ratio</span></code> </p> </td> <td> <p> The tick period of the clock in seconds. </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="identifier">C1</span><span class="special">::</span><span class="identifier">duration</span></code> </p> </td> <td> <p> <code class="computeroutput"><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">C1</span><span class="special">::</span><span class="identifier">rep</span><span class="special">,</span> <span class="identifier">C1</span><span class="special">::</span><span class="identifier">period</span><span class="special">&gt;</span></code> </p> </td> <td> <p> The <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> type of the <code class="computeroutput"><span class="identifier">clock</span></code>. </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="identifier">C1</span><span class="special">::</span><span class="identifier">time_point</span></code> </p> </td> <td> <p> <code class="computeroutput"><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">C1</span><span class="special">&gt;</span> <span class="keyword">or</span> <span class="identifier">chrono</span><span class="special">::</span><span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">C2</span><span class="special">,</span> <span class="identifier">C1</span><span class="special">::</span><span class="identifier">duration</span><span class="special">&gt;</span></code> </p> </td> <td> <p> The <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> type of the <code class="computeroutput"><span class="identifier">clock</span></code>. Different clocks are permitted to share a <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> definition if it is valid to compare their time_points by comparing their respective <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>s. <code class="computeroutput"><span class="identifier">C1</span></code> and <code class="computeroutput"><span class="identifier">C2</span></code> must refer to the same epoch. </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="identifier">C1</span><span class="special">::</span><span class="identifier">is_steady</span></code> </p> </td> <td> <p> <code class="computeroutput"><span class="keyword">constexpr</span> <span class="keyword">bool</span></code> </p> </td> <td> <p> <code class="computeroutput"><span class="keyword">true</span></code> if <code class="computeroutput"><span class="identifier">t1</span> <span class="special">&lt;=</span> <span class="identifier">t2</span></code> is always <code class="computeroutput"><span class="keyword">true</span></code>, else <code class="computeroutput"><span class="keyword">false</span></code>. <span class="bold"><strong>Note</strong></span>: A <code class="computeroutput"><span class="identifier">clock</span></code> that can be adjusted backwards is not steady </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="identifier">C1</span><span class="special">::</span><span class="identifier">now</span><span class="special">()</span></code> </p> </td> <td> <p> <code class="computeroutput"><span class="identifier">C1</span><span class="special">::</span><span class="identifier">time_point</span></code> </p> </td> <td> <p> Returns a <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> representing the current point in time. </p> </td> </tr> </tbody> </table></div> </div> <br class="table-break"><p> Models of <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a>: </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.system_clock" title="Class system_clock"><code class="computeroutput"><span class="identifier">system_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.steady_clock" title="Class steady_clock"><code class="computeroutput"><span class="identifier">steady_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.high_resolution_clock" title="Class high_resolution_clock"><code class="computeroutput"><span class="identifier">high_resolution_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_real_cpu_clock" title="Class process_real_cpu_clock"><code class="computeroutput"><span class="identifier">process_real_cpu_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_user_cpu_clock" title="Class process_user_cpu_clock"><code class="computeroutput"><span class="identifier">process_user_cpu_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_system_cpu_clock" title="Class process_system_cpu_clock"><code class="computeroutput"><span class="identifier">process_system_cpu_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_cpu_clock" title="Class process_cpu_clock"><code class="computeroutput"><span class="identifier">process_cpu_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.other_clocks.thread_clock_hpp.thread_clock" title="Class thread_clock"><code class="computeroutput"><span class="identifier">thread_clock</span></code></a> </li> </ul></div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.cpp0x.trivial_clock"></a><a class="link" href="reference.html#chrono.reference.cpp0x.trivial_clock" title="TrivialClock Requirements"><code class="computeroutput"><span class="identifier">TrivialClock</span></code> Requirements</a> </h4></div></div></div> <p> A type <code class="computeroutput"><span class="identifier">TC</span></code> meets the <code class="computeroutput"><span class="identifier">TrivialClock</span></code> requirements if: </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <code class="computeroutput"><span class="identifier">TC</span></code> satisfies the <code class="computeroutput"><span class="identifier">Clock</span></code> requirements, </li> <li class="listitem"> the types <code class="computeroutput"><span class="identifier">TC</span><span class="special">::</span><span class="identifier">rep</span></code>, <code class="computeroutput"><span class="identifier">TC</span><span class="special">::</span><span class="identifier">duration</span></code>, and <code class="computeroutput"><span class="identifier">TC</span><span class="special">::</span><span class="identifier">time_point</span></code> satisfy the requirements of <code class="computeroutput"><span class="identifier">EqualityComparable</span></code>, <code class="computeroutput"><span class="identifier">LessThanComparable</span></code>, <code class="computeroutput"><span class="identifier">DefaultConstructible</span></code>, <code class="computeroutput"><span class="identifier">CopyConstructible</span></code>, <code class="computeroutput"><span class="identifier">CopyAssignable</span></code>, <code class="computeroutput"><span class="identifier">Destructible</span></code>, and the requirements of numeric types. </li> </ul></div> <div class="note"><table border="0" summary="Note"> <tr> <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../doc/src/images/note.png"></td> <th align="left">Note</th> </tr> <tr><td align="left" valign="top"><p> This means, in particular, that operations on these types will not throw exceptions. </p></td></tr> </table></div> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> lvalues of the types <code class="computeroutput"><span class="identifier">TC</span><span class="special">::</span><span class="identifier">rep</span></code>, <code class="computeroutput"><span class="identifier">TC</span><span class="special">::</span><span class="identifier">duration</span></code>, and <code class="computeroutput"><span class="identifier">TC</span><span class="special">::</span><span class="identifier">time_point</span></code> are swappable, </li> <li class="listitem"> the function <code class="computeroutput"><span class="identifier">TC</span><span class="special">::</span><span class="identifier">now</span><span class="special">()</span></code> does not throw exceptions and it is thread-safe, and </li> <li class="listitem"> the type <code class="computeroutput"><span class="identifier">TC</span><span class="special">::</span><span class="identifier">time_point</span><span class="special">::</span><span class="identifier">clock</span></code> meets the <code class="computeroutput"><span class="identifier">TrivialClock</span></code> requirements, recursively. </li> </ul></div> <p> Models of <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">TrivialClock</span></code></a>: </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.system_clock" title="Class system_clock"><code class="computeroutput"><span class="identifier">system_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.steady_clock" title="Class steady_clock"><code class="computeroutput"><span class="identifier">steady_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.high_resolution_clock" title="Class high_resolution_clock"><code class="computeroutput"><span class="identifier">high_resolution_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_real_cpu_clock" title="Class process_real_cpu_clock"><code class="computeroutput"><span class="identifier">process_real_cpu_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_user_cpu_clock" title="Class process_user_cpu_clock"><code class="computeroutput"><span class="identifier">process_user_cpu_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_system_cpu_clock" title="Class process_system_cpu_clock"><code class="computeroutput"><span class="identifier">process_system_cpu_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.other_clocks.thread_clock_hpp.thread_clock" title="Class thread_clock"><code class="computeroutput"><span class="identifier">thread_clock</span></code></a> </li> </ul></div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.cpp0x.ecclock"></a><a class="link" href="reference.html#chrono.reference.cpp0x.ecclock" title="EcClock Requirements"><code class="computeroutput"><span class="identifier">EcClock</span></code> Requirements</a> </h4></div></div></div> <p> A type <code class="computeroutput"><span class="identifier">EcC</span></code> meets the <code class="computeroutput"><span class="identifier">EcClock</span></code> requirements if </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <code class="computeroutput"><span class="identifier">TC</span></code> satisfies the <code class="computeroutput"><span class="identifier">TrivialClock</span> </code> requirements, and </li> <li class="listitem"> it adds <code class="computeroutput"><span class="identifier">now</span><span class="special">()</span></code> interfaces allowing to recover internal error codes as described in the following table. </li> <li class="listitem"> the added now() function is thread-safe. </li> </ul></div> <p> In this table <code class="computeroutput"><span class="identifier">C1</span></code> denotes a <code class="computeroutput"><span class="identifier">EcClock</span></code> type and <code class="computeroutput"><span class="identifier">ec</span></code> is an instance of a <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">system</span><span class="special">::</span><span class="identifier">error_code</span></code>. </p> <div class="table"> <a name="chrono.reference.cpp0x.ecclock.clock_requirements"></a><p class="title"><b>Table&#160;7.2.&#160;Clock Requirements</b></p> <div class="table-contents"><table class="table" summary="Clock Requirements"> <colgroup> <col> <col> <col> </colgroup> <thead><tr> <th> <p> expression </p> </th> <th> <p> return type </p> </th> <th> <p> operational semantics </p> </th> </tr></thead> <tbody> <tr> <td> <p> <code class="computeroutput"><span class="identifier">C1</span><span class="special">::</span><span class="identifier">now</span><span class="special">(</span><span class="identifier">ec</span><span class="special">)</span></code> </p> </td> <td> <p> <code class="computeroutput"><span class="identifier">C1</span><span class="special">::</span><span class="identifier">time_point</span></code> </p> </td> <td> <p> Returns a <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> representing the current point in time. <code class="computeroutput"><span class="identifier">ec</span></code> will stores the error-code in case something was wrong internally. </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="identifier">C1</span><span class="special">::</span><span class="identifier">now</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">throws</span><span class="special">())</span></code> </p> </td> <td> <p> <code class="computeroutput"><span class="identifier">C1</span><span class="special">::</span><span class="identifier">time_point</span></code> </p> </td> <td> <p> Returns a <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> representing the current point in time. Throws a <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">system</span><span class="special">::</span><span class="identifier">system_error</span></code> exception in case something was wrong internally. </p> </td> </tr> </tbody> </table></div> </div> <br class="table-break"><p> Models of <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a>: </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.system_clock" title="Class system_clock"><code class="computeroutput"><span class="identifier">system_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.steady_clock" title="Class steady_clock"><code class="computeroutput"><span class="identifier">steady_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.high_resolution_clock" title="Class high_resolution_clock"><code class="computeroutput"><span class="identifier">high_resolution_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_real_cpu_clock" title="Class process_real_cpu_clock"><code class="computeroutput"><span class="identifier">process_real_cpu_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_user_cpu_clock" title="Class process_user_cpu_clock"><code class="computeroutput"><span class="identifier">process_user_cpu_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_system_cpu_clock" title="Class process_system_cpu_clock"><code class="computeroutput"><span class="identifier">process_system_cpu_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_cpu_clock" title="Class process_cpu_clock"><code class="computeroutput"><span class="identifier">process_cpu_clock</span></code></a> </li> <li class="listitem"> <a class="link" href="reference.html#chrono.reference.other_clocks.thread_clock_hpp.thread_clock" title="Class thread_clock"><code class="computeroutput"><span class="identifier">thread_clock</span></code></a> </li> </ul></div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp" title="Header &lt;boost/chrono/time_point.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">time_point</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.time_point_hpp.common_type_spe2"><code class="computeroutput"><span class="identifier">common_type</span></code> specialization</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point">Class template <code class="computeroutput"><span class="identifier">time_point</span><span class="special">&lt;&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.time_point_hpp.arith"><code class="computeroutput"><span class="identifier">time_point</span></code> non-member arithmetic</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.time_point_hpp.cmp"><code class="computeroutput"><span class="identifier">time_point</span></code> non-member comparisons</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point_cast">Non-Member Function <code class="computeroutput"><span class="identifier">time_point_cast</span><span class="special">(</span><span class="identifier">time_point</span><span class="special">)</span></code></a></span></dt> </dl></div> <p> This file contains <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> specific classes and non-member functions. </p> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a> <span class="special">=</span> <span class="keyword">typename</span> <span class="identifier">Clock</span><span class="special">::</span><span class="identifier">duration</span><span class="special">&gt;</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">;</span> <span class="special">}</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.common_type_spe" title="common_type Specialization"><code class="computeroutput"><span class="identifier">common_type</span></code></a><span class="special">&lt;</span><span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration1</span><span class="special">&gt;,</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration2</span><span class="special">&gt;</span> <span class="special">&gt;;</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="comment">// time_point arithmetic</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">common_type</span><span class="special">&lt;</span><span class="identifier">Duration1</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.arith.time_point__op_plus_1" title="Non-Member Function operator+(time_point,duration)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">+</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">common_type</span><span class="special">&lt;</span><span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;,</span> <span class="identifier">Duration2</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.arith.time_point__op_plus_2" title="Non-Member Function operator+(duration,time_point)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">+</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">common_type</span><span class="special">&lt;</span><span class="identifier">Duration1</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.arith.time_point__op_minus_1" title="Non-Member Function operator-(time_point,duration)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">-</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">typename</span> <span class="identifier">common_type</span><span class="special">&lt;</span><span class="identifier">Duration1</span><span class="special">,</span> <span class="identifier">Duration2</span><span class="special">&gt;::</span><span class="identifier">type</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.arith.time_point__op_minus_2" title="Non-Member Function operator-(time_point,time_point)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">-</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="comment">// time_point comparisons</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.cmp.time_point__op_eq" title="Non-Member Function operator==(time_point,time_point)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">==</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.cmp.time_point__op_neq" title="Non-Member Function operator!=(time_point,time_point)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">!=</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.cmp.time_point__op_lt" title="Non-Member Function operator&lt;(time_point,time_point)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">&lt;</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.cmp.time_point__op_leq" title="Non-Member Function operator&lt;=(time_point,time_point)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">&lt;=</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.cmp.time_point__op_gt" title="Non-Member Function operator&gt;(time_point,time_point)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">&gt;</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.cmp.time_point__op_geq" title="Non-Member Function operator&gt;=(time_point,time_point)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">&gt;=</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="comment">// time_point_cast</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">ToDuration</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">ToDuration</span><span class="special">&gt;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point_cast" title="Non-Member Function time_point_cast(time_point)"><code class="computeroutput"><span class="identifier">time_point_cast</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration</span><span class="special">&gt;&amp;</span> <span class="identifier">t</span><span class="special">);</span> <span class="special">}</span> <span class="special">}</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.common_type_spe2"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.common_type_spe2" title="common_type specialization"><code class="computeroutput"><span class="identifier">common_type</span></code> specialization</a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">struct</span> <code class="computeroutput"><span class="identifier">common_type</span></code><span class="special">&lt;</span><span class="identifier">chrono</span><span class="special">::</span><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">&gt;,</span> <span class="identifier">chrono</span><span class="special">::</span><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="special">{</span> <span class="keyword">typedef</span> <span class="identifier">chrono</span><span class="special">::</span><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">typename</span> <code class="computeroutput"><span class="identifier">common_type</span></code><span class="special">&lt;</span><span class="identifier">Duration1</span><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;</span> <span class="identifier">type</span><span class="special">;</span> <span class="special">};</span> </pre> <p> The <code class="computeroutput"><span class="identifier">common_type</span></code> of two <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a>s is a <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> with the same <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a> (both have the same <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a>), and the <code class="computeroutput"><span class="identifier">common_type</span></code> of the two <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>s. </p> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.time_point"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;">Class template <code class="computeroutput"><span class="identifier">time_point</span><span class="special">&lt;&gt;</span></code></a> </h5></div></div></div> <p> A <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> represents a point in time with respect to a specific clock. </p> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;</span> <span class="keyword">class</span> <span class="identifier">time_point</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">typedef</span> <span class="identifier">Clock</span> <span class="identifier">clock</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">Duration</span> <span class="identifier">duration</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="keyword">typename</span> <span class="identifier">duration</span><span class="special">::</span><span class="identifier">rep</span> <span class="identifier">rep</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="keyword">typename</span> <span class="identifier">duration</span><span class="special">::</span><span class="identifier">period</span> <span class="identifier">period</span><span class="special">;</span> <span class="keyword">private</span><span class="special">:</span> <span class="identifier">duration</span> <span class="identifier">d_</span><span class="special">;</span> <span class="comment">// exposition only</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.time_point_c_1" title="Constructor time_point()"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">();</span> <span class="keyword">constexpr</span> <span class="keyword">explicit</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.time_point_c_2" title="Constructor time_point(const duration&amp;)"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">);</span> <span class="comment">// conversions</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.time_point_c_3" title="Copy Constructor time_point(const time_point&amp;)"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">clock</span><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">t</span><span class="special">);</span> <span class="comment">// observer</span> <span class="keyword">constexpr</span> <span class="identifier">duration</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.time_since_epoch" title="Member Function time_since_epoch() const"><code class="computeroutput"><span class="identifier">time_since_epoch</span></code></a><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> <span class="comment">// arithmetic</span> <span class="preprocessor">#ifdef</span> <span class="identifier">BOOST_CHRONO_EXTENSIONS</span> <span class="keyword">constexpr</span> <span class="identifier">time_point</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.op_unary_plus" title="Member Function operator+() const"><code class="computeroutput"><span class="keyword">operator</span><span class="special">+</span></code></a><span class="special">();</span> <span class="keyword">constexpr</span> <span class="identifier">time_point</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.op_unary_minus" title="Member Function operator-() const"><code class="computeroutput"><span class="keyword">operator</span><span class="special">-</span></code></a><span class="special">();</span> <span class="identifier">time_point</span><span class="special">&amp;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.op_pre_inc" title="Member Function operator++()"><code class="computeroutput"><span class="keyword">operator</span><span class="special">++</span></code></a><span class="special">();</span> <span class="identifier">time_point</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.op_post_inc" title="Member Function operator++(int)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">++</span></code></a><span class="special">(</span><span class="keyword">int</span><span class="special">);</span> <span class="identifier">time_point</span><span class="special">&amp;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.op_pre_dec" title="Member Function operator--()"><code class="computeroutput"><span class="keyword">operator</span><span class="special">--</span></code></a><span class="special">();</span> <span class="identifier">time_point</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.op_post_dec" title="Member Function operator--(int)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">--</span></code></a><span class="special">(</span><span class="keyword">int</span><span class="special">);</span> <span class="identifier">time_point</span><span class="special">&amp;</span> <span class="identifier">__time_point__op_plus_eq_1</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">rep</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">);</span> <span class="identifier">time_point</span><span class="special">&amp;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.op_minus_eq_1" title="Member Function operator-=(const rep&amp;)"><code class="computeroutput"><span class="keyword">operator</span><span class="special">-=</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">rep</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">);</span> <span class="preprocessor">#endif</span> <span class="identifier">time_point</span><span class="special">&amp;</span> <span class="identifier">__time_point__op_plus_eq_2</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">);</span> <span class="identifier">time_point</span><span class="special">&amp;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.op_minus_eq_2" title="Member Function operator-="><code class="computeroutput"><span class="keyword">operator</span><span class="special">-=</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">);</span> <span class="comment">// special values</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">time_point</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.min" title="Static Member Function min"><code class="computeroutput"><span class="identifier">min</span></code></a><span class="special">();</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">time_point</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.max" title="Static Member Function max"><code class="computeroutput"><span class="identifier">max</span></code></a><span class="special">();</span> <span class="special">};</span> </pre> <p> Clock must meet the <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a> requirements. </p> <p> Duration must be an instantiation of <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>, compile diagnostic otherwise. </p> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.time_point.time_point_c_1"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.time_point_c_1" title="Constructor time_point()">Constructor <code class="computeroutput"><span class="identifier">time_point</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">constexpr</span> <span class="identifier">time_point</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Constructs an object of <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a>, initializing <code class="computeroutput"><span class="identifier">d_</span></code> with <code class="computeroutput"><span class="identifier">duration</span><span class="special">::</span><span class="identifier">zero</span><span class="special">()</span></code>. This <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> represents the epoch. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.time_point.time_point_c_2"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.time_point_c_2" title="Constructor time_point(const duration&amp;)">Constructor <code class="computeroutput"><span class="identifier">time_point</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">constexpr</span> <span class="identifier">time_point</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Constructs an object of <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a>, initializing <code class="computeroutput"><span class="identifier">d_</span></code> with <code class="computeroutput"><span class="identifier">d</span></code>. This <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> represents the epoch <code class="computeroutput"><span class="special">+</span> <span class="identifier">d</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.time_point.time_point_c_3"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.time_point_c_3" title="Copy Constructor time_point(const time_point&amp;)">Copy Constructor <code class="computeroutput"><span class="identifier">time_point</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="identifier">time_point</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><span class="identifier">clock</span><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">t</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Requires:</strong></span> This function will not participate in overload resolution unless <code class="computeroutput"><span class="identifier">Duration2</span></code> is implicitly convertible to <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>. </p> <p> <span class="bold"><strong>Effects:</strong></span> Constructs an object of <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a>, initializing <code class="computeroutput"><span class="identifier">d_</span></code> with <code class="computeroutput"><span class="identifier">t</span><span class="special">.</span><span class="identifier">time_since_epoch</span><span class="special">()</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.time_point.time_since_epoch"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.time_since_epoch" title="Member Function time_since_epoch() const">Member Function <code class="computeroutput"><span class="identifier">time_since_epoch</span><span class="special">()</span> <span class="keyword">const</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">constexpr</span> <span class="identifier">duration</span> <span class="identifier">time_since_epoch</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">d_</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.time_point.op_unary_plus"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.op_unary_plus" title="Member Function operator+() const">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">+()</span> <span class="keyword">const</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> <span class="keyword">operator</span><span class="special">+()</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.time_point.op_unary_minus"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.op_unary_minus" title="Member Function operator-() const">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">-()</span> <span class="keyword">const</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> <span class="keyword">operator</span><span class="special">-()</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">(-</span><span class="identifier">d_</span><span class="special">)</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.time_point.op_pre_inc"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.op_pre_inc" title="Member Function operator++()">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">++()</span></code></a> </h6></div></div></div> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&amp;</span> <span class="keyword">operator</span><span class="special">++();</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> <code class="computeroutput"><span class="special">++</span><span class="identifier">d_</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.time_point.op_post_inc"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.op_post_inc" title="Member Function operator++(int)">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">++(</span><span class="keyword">int</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> <span class="keyword">operator</span><span class="special">++(</span><span class="keyword">int</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">(</span><span class="identifier">d_</span><span class="special">++)</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.time_point.op_pre_dec"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.op_pre_dec" title="Member Function operator--()">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">--()</span></code></a> </h6></div></div></div> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&amp;</span> <span class="keyword">operator</span><span class="special">--();</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> <code class="computeroutput"><span class="special">--</span><span class="identifier">d_</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.time_point.op_post_dec"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.op_post_dec" title="Member Function operator--(int)">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">--(</span><span class="keyword">int</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> <span class="keyword">operator</span><span class="special">--(</span><span class="keyword">int</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">(</span><span class="identifier">d_</span><span class="special">--)</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.time_point.op_plus_eq_1"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.op_plus_eq_1" title="Member Function operator+=(const rep&amp;)">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">+=(</span><span class="keyword">const</span> <span class="identifier">rep</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&amp;</span> <span class="keyword">operator</span><span class="special">+=(</span><span class="keyword">const</span> <span class="identifier">rep</span><span class="special">&amp;</span> <span class="identifier">r</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> <code class="computeroutput"><span class="identifier">d_</span> <span class="special">+=</span> <span class="identifier">duration</span><span class="special">(</span><span class="identifier">r</span><span class="special">)</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.time_point.op_minus_eq_1"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.op_minus_eq_1" title="Member Function operator-=(const rep&amp;)">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">-=(</span><span class="keyword">const</span> <span class="identifier">rep</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&amp;</span> <span class="keyword">operator</span><span class="special">-=(</span><span class="keyword">const</span> <span class="identifier">rep</span><span class="special">&amp;</span> <span class="identifier">r</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> <code class="computeroutput"><span class="identifier">d_</span> <span class="special">-=</span> <span class="identifier">duration</span><span class="special">(</span><span class="identifier">r</span><span class="special">)</span></code> </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.time_point.op_plus_eq_2"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.op_plus_eq_2" title="Member Function operator+=">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">+=</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="identifier">time_point</span><span class="special">&amp;</span> <span class="keyword">operator</span><span class="special">+=(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> <code class="computeroutput"><span class="identifier">d_</span> <span class="special">+=</span> <span class="identifier">d</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.time_point.op_minus_eq_2"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.op_minus_eq_2" title="Member Function operator-=">Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">-=</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="identifier">time_point</span><span class="special">&amp;</span> <span class="keyword">operator</span><span class="special">-=(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> <code class="computeroutput"><span class="identifier">d_</span> <span class="special">-=</span> <span class="identifier">d</span></code> </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.time_point.min"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.min" title="Static Member Function min">Static Member Function <code class="computeroutput"><span class="identifier">min</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">time_point</span> <span class="identifier">min</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">time_point</span><span class="special">(</span><span class="identifier">duration</span><span class="special">::</span><span class="identifier">min</span><span class="special">())</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.time_point.max"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point.max" title="Static Member Function max">Static Member Function <code class="computeroutput"><span class="identifier">max</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">time_point</span> <span class="identifier">max</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">time_point</span><span class="special">(</span><span class="identifier">duration</span><span class="special">::</span><span class="identifier">max</span><span class="special">())</span></code>. </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.arith"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.arith" title="time_point non-member arithmetic"><code class="computeroutput"><span class="identifier">time_point</span></code> non-member arithmetic</a> </h5></div></div></div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.arith.time_point__op_plus_1"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.arith.time_point__op_plus_1" title="Non-Member Function operator+(time_point,duration)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">+(</span><span class="identifier">time_point</span><span class="special">,</span><span class="identifier">duration</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">typename</span> <code class="computeroutput"><span class="identifier">common_type</span></code><span class="special">&lt;</span><span class="identifier">Duration1</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;</span> <span class="keyword">operator</span><span class="special">+(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">CT</span><span class="special">(</span><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">time_since_epoch</span><span class="special">()</span> <span class="special">+</span> <span class="identifier">rhs</span><span class="special">)</span></code> where <code class="computeroutput"><span class="identifier">CT</span></code> is the type of the return value. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.arith.time_point__op_plus_2"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.arith.time_point__op_plus_2" title="Non-Member Function operator+(duration,time_point)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">+(</span><span class="identifier">duration</span><span class="special">,</span><span class="identifier">time_point</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period1</span><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">typename</span> <code class="computeroutput"><span class="identifier">common_type</span></code><span class="special">&lt;</span><span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;</span> <span class="keyword">operator</span><span class="special">+(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep1</span><span class="special">,</span> <span class="identifier">Period1</span><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">rhs</span> <span class="special">+</span> <span class="identifier">lhs</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.arith.time_point__op_minus_1"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.arith.time_point__op_minus_1" title="Non-Member Function operator-(time_point,duration)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">-(</span><span class="identifier">time_point</span><span class="special">,</span><span class="identifier">duration</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">typename</span> <code class="computeroutput"><span class="identifier">common_type</span></code><span class="special">&lt;</span><span class="identifier">Duration1</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;</span> <span class="keyword">operator</span><span class="special">-(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">,</span> <span class="identifier">Period2</span><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">lhs</span> <span class="special">+</span> <span class="special">(-</span><span class="identifier">rhs</span><span class="special">)</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.arith.time_point__op_minus_2"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.arith.time_point__op_minus_2" title="Non-Member Function operator-(time_point,time_point)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">-(</span><span class="identifier">time_point</span><span class="special">,</span><span class="identifier">time_point</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">typename</span> <code class="computeroutput"><span class="identifier">common_type</span></code><span class="special">&lt;</span><span class="identifier">Duration1</span><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;::</span><span class="identifier">type</span> <span class="keyword">operator</span><span class="special">-(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">time_since_epoch</span><span class="special">()</span> <span class="special">-</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">time_since_epoch</span><span class="special">()</span></code>. </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.cmp"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.cmp" title="time_point non-member comparisons"><code class="computeroutput"><span class="identifier">time_point</span></code> non-member comparisons</a> </h5></div></div></div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.cmp.time_point__op_eq"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.cmp.time_point__op_eq" title="Non-Member Function operator==(time_point,time_point)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">==(</span><span class="identifier">time_point</span><span class="special">,</span><span class="identifier">time_point</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">==(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">time_since_epoch</span><span class="special">()</span> <span class="special">==</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">time_since_epoch</span><span class="special">()</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.cmp.time_point__op_neq"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.cmp.time_point__op_neq" title="Non-Member Function operator!=(time_point,time_point)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">!=(</span><span class="identifier">time_point</span><span class="special">,</span><span class="identifier">time_point</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">!=(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">!(</span><span class="identifier">lhs</span> <span class="special">==</span> <span class="identifier">rhs</span><span class="special">)</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.cmp.time_point__op_lt"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.cmp.time_point__op_lt" title="Non-Member Function operator&lt;(time_point,time_point)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">&lt;(</span><span class="identifier">time_point</span><span class="special">,</span><span class="identifier">time_point</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">&lt;</span> <span class="special">(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> lhs.time_since_epoch() &lt; rhs.time_since_epoch(). </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.cmp.time_point__op_leq"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.cmp.time_point__op_leq" title="Non-Member Function operator&lt;=(time_point,time_point)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">&lt;=(</span><span class="identifier">time_point</span><span class="special">,</span><span class="identifier">time_point</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">&lt;=(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">!(</span><span class="identifier">rhs</span> <span class="special">&lt;</span> <span class="identifier">lhs</span><span class="special">)</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.cmp.time_point__op_gt"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.cmp.time_point__op_gt" title="Non-Member Function operator&gt;(time_point,time_point)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">&gt;(</span><span class="identifier">time_point</span><span class="special">,</span><span class="identifier">time_point</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">&gt;(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">rhs</span> <span class="special">&lt;</span> <span class="identifier">lhs</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.cmp.time_point__op_geq"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.cmp.time_point__op_geq" title="Non-Member Function operator&gt;=(time_point,time_point)">Non-Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">&gt;=(</span><span class="identifier">time_point</span><span class="special">,</span><span class="identifier">time_point</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">&gt;=(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration1</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration2</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="special">!(</span><span class="identifier">lhs</span> <span class="special">&lt;</span> <span class="identifier">rhs</span><span class="special">)</span></code>. </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.time_point_hpp.time_point_cast"></a><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point_cast" title="Non-Member Function time_point_cast(time_point)">Non-Member Function <code class="computeroutput"><span class="identifier">time_point_cast</span><span class="special">(</span><span class="identifier">time_point</span><span class="special">)</span></code></a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">ToDuration</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;</span> <span class="keyword">constexpr</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="identifier">ToDuration</span><span class="special">&gt;</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point_cast" title="Non-Member Function time_point_cast(time_point)"><code class="computeroutput"><span class="identifier">time_point_cast</span></code></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">t</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Requires:</strong></span> This function will not participate in overload resolution unless <code class="computeroutput"><span class="identifier">ToDuration</span></code> is an instantiation of <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="identifier">ToDuration</span><span class="special">&gt;(</span><a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration_cast" title="Non-Member Function duration_cast(duration)"><code class="computeroutput"><span class="identifier">duration_cast</span></code></a><span class="special">&lt;</span><span class="identifier">ToDuration</span><span class="special">&gt;(</span><span class="identifier">t</span><span class="special">.</span><span class="identifier">time_since_epoch</span><span class="special">()))</span></code>. </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.cpp0x.system_clocks_hpp"></a><a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp" title="Header &lt;boost/chrono/system_clocks.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">system_clocks</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.system_clock">Class <code class="computeroutput"><span class="identifier">system_clock</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.BOOST_CHRONO_HAS_CLOCK_STEADY">Macro <code class="computeroutput"><span class="identifier">BOOST_CHRONO_HAS_CLOCK_STEADY</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.steady_clock">Class <code class="computeroutput"><span class="identifier">steady_clock</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.high_resolution_clock">Class <code class="computeroutput"><span class="identifier">high_resolution_clock</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.clock_string_system_clock"><code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">system_clock</span><span class="special">&gt;</span></code> Specialization</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.clock_string_steady_clock"><code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">steady_clock</span><span class="special">&gt;</span></code> Specialization</a></span></dt> </dl></div> <p> This file contains the standard clock classes. The types defined in this section satisfy the <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">TrivialClock</span></code></a> requirements </p> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="comment">// Clocks</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.system_clock" title="Class system_clock"><code class="computeroutput"><span class="identifier">system_clock</span></code></a><span class="special">;</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.steady_clock" title="Class steady_clock"><code class="computeroutput"><span class="identifier">steady_clock</span></code></a><span class="special">;</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.high_resolution_clock" title="Class high_resolution_clock"><code class="computeroutput"><span class="identifier">high_resolution_clock</span></code></a><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">system_clock</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">&gt;;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">steady_clock</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">&gt;;</span> <span class="special">}</span> <span class="special">}</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.system_clocks_hpp.system_clock"></a><a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.system_clock" title="Class system_clock">Class <code class="computeroutput"><span class="identifier">system_clock</span></code></a> </h5></div></div></div> <p> The <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.system_clock" title="Class system_clock"><code class="computeroutput"><span class="identifier">system_clock</span></code></a> class provides a means of obtaining the current wall-clock time from the system-wide real-time clock. The current time can be obtained by calling <code class="computeroutput"><span class="identifier">system_clock</span><span class="special">::</span><span class="identifier">now</span><span class="special">()</span></code>. Instances of <code class="computeroutput"><span class="identifier">system_clock</span><span class="special">::</span><span class="identifier">time_point</span></code> can be converted to and from time_t with the <code class="computeroutput"><span class="identifier">system_clock</span><span class="special">::</span><span class="identifier">to_time_t</span><span class="special">()</span></code> and <code class="computeroutput"><span class="identifier">system_clock</span><span class="special">::</span><span class="identifier">from_time_t</span><span class="special">()</span></code> functions. If system clock is not steady, a subsequent call to <code class="computeroutput"><span class="identifier">system_clock</span><span class="special">::</span><span class="identifier">now</span><span class="special">()</span></code> may return an earlier time than a previous call (e.g. if the operating system clock is manually adjusted, or synchronized with an external clock). </p> <p> The current implementation of <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.system_clock" title="Class system_clock"><code class="computeroutput"><span class="identifier">system_clock</span></code></a> is related an epoch (midnight UTC of January 1, 1970), but this is not in the contract. You need to use the static function static </p> <pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">time_t</span> <span class="identifier">to_time_t</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">);</span> </pre> <p> which returns a <code class="computeroutput"><span class="identifier">time_t</span></code> type that is based on midnight UTC of January 1, 1970. </p> <pre class="programlisting"><span class="keyword">class</span> <span class="identifier">system_clock</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">typedef</span> <span class="emphasis"><em>see bellow</em></span> <span class="identifier">duration</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">::</span><span class="identifier">rep</span> <span class="identifier">rep</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">::</span><span class="identifier">period</span> <span class="identifier">period</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">chrono</span><span class="special">::</span><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><span class="identifier">system_clock</span><span class="special">&gt;</span> <span class="identifier">time_point</span><span class="special">;</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <span class="identifier">is_steady</span> <span class="special">=</span> <span class="keyword">false</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">time_point</span> <span class="identifier">now</span><span class="special">()</span> <span class="keyword">noexcept</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">time_point</span> <span class="identifier">now</span><span class="special">(</span><span class="identifier">system</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&amp;</span> <span class="identifier">ec</span><span class="special">);</span> <span class="comment">// Map to C API</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">time_t</span> <span class="identifier">to_time_t</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">time_point</span> <span class="identifier">from_time_t</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">time_t</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span> <span class="special">};</span> </pre> <p> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.system_clock" title="Class system_clock"><code class="computeroutput"><span class="identifier">system_clock</span></code></a> satisfy the <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a> requirements: </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <code class="computeroutput"><span class="identifier">system_clock</span><span class="special">::</span><span class="identifier">duration</span><span class="special">::</span><span class="identifier">min</span><span class="special">()</span> <span class="special">&lt;</span> <span class="identifier">system_clock</span><span class="special">::</span><span class="identifier">duration</span><span class="special">::</span><span class="identifier">zero</span><span class="special">()</span></code> is <code class="computeroutput"><span class="keyword">true</span></code>. </li> <li class="listitem"> The nested <code class="computeroutput"><span class="identifier">duration</span></code> typedef has a resolution that depends on the one provided by the platform. </li> </ul></div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.system_clocks_hpp.system_clock.to_time_t"></a><a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.system_clock.to_time_t" title="Static Member Function to_time_t(time_point)">Static Member Function <code class="computeroutput"><span class="identifier">to_time_t</span><span class="special">(</span><span class="identifier">time_point</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="identifier">time_t</span> <span class="identifier">to_time_t</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> A <code class="computeroutput"><span class="identifier">time_t</span></code> such that the <code class="computeroutput"><span class="identifier">time_t</span></code> and <code class="computeroutput"><span class="identifier">t</span></code> represent the same point in time, truncated to the coarser of the precisions among <code class="computeroutput"><span class="identifier">time_t</span></code> and <code class="computeroutput"><span class="identifier">time_point</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.cpp0x.system_clocks_hpp.system_clock.from_time_t"></a><a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.system_clock.from_time_t" title="Static Member Function from_time_t(time_t)">Static Member Function <code class="computeroutput"><span class="identifier">from_time_t</span><span class="special">(</span><span class="identifier">time_t</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="identifier">time_point</span> <span class="identifier">from_time_t</span><span class="special">(</span><span class="identifier">time_t</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> A <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> such that the <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> and <code class="computeroutput"><span class="identifier">t</span></code> represent the same point in time, truncated to the coarser of the precisions among <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> and <code class="computeroutput"><span class="identifier">time_t</span></code>. </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.system_clocks_hpp.BOOST_CHRONO_HAS_CLOCK_STEADY"></a><a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.BOOST_CHRONO_HAS_CLOCK_STEADY" title="Macro BOOST_CHRONO_HAS_CLOCK_STEADY">Macro <code class="computeroutput"><span class="identifier">BOOST_CHRONO_HAS_CLOCK_STEADY</span></code></a> </h5></div></div></div> <p> Defined if the platform support steady clocks. </p> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.system_clocks_hpp.steady_clock"></a><a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.steady_clock" title="Class steady_clock">Class <code class="computeroutput"><span class="identifier">steady_clock</span></code></a> </h5></div></div></div> <p> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.steady_clock" title="Class steady_clock"><code class="computeroutput"><span class="identifier">steady_clock</span></code></a> satisfy the <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a> requirements. </p> <p> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.steady_clock" title="Class steady_clock"><code class="computeroutput"><span class="identifier">steady_clock</span></code></a> class provides access to the system-wide steady clock. The current time can be obtained by calling <code class="computeroutput"><span class="identifier">steady_clock</span><span class="special">::</span><span class="identifier">now</span><span class="special">()</span></code>. There is no fixed relationship between values returned by <code class="computeroutput"><span class="identifier">steady_clock</span><span class="special">::</span><span class="identifier">now</span><span class="special">()</span></code> and wall-clock time. </p> <pre class="programlisting"><span class="preprocessor">#ifdef</span> <span class="identifier">BOOST_HAS_CLOCK_STEADY</span> <span class="keyword">class</span> <span class="identifier">steady_clock</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">typedef</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration_typedefs" title="duration typedefs"><code class="computeroutput"><span class="identifier">nanoseconds</span></code></a> <span class="identifier">duration</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">::</span><span class="identifier">rep</span> <span class="identifier">rep</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">::</span><span class="identifier">period</span> <span class="identifier">period</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">chrono</span><span class="special">::</span><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><span class="identifier">steady_clock</span><span class="special">&gt;</span> <span class="identifier">time_point</span><span class="special">;</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <span class="identifier">is_steady</span> <span class="special">=</span> <span class="keyword">true</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">time_point</span> <span class="identifier">now</span><span class="special">()</span> <span class="keyword">noexcept</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">time_point</span> <span class="identifier">now</span><span class="special">(</span><span class="identifier">system</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&amp;</span> <span class="identifier">ec</span><span class="special">);</span> <span class="special">};</span> <span class="preprocessor">#endif</span> </pre> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.system_clocks_hpp.high_resolution_clock"></a><a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.high_resolution_clock" title="Class high_resolution_clock">Class <code class="computeroutput"><span class="identifier">high_resolution_clock</span></code></a> </h5></div></div></div> <p> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.high_resolution_clock" title="Class high_resolution_clock"><code class="computeroutput"><span class="identifier">high_resolution_clock</span></code></a> satisfy the <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a> requirements. </p> <pre class="programlisting"><span class="preprocessor">#ifdef</span> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.BOOST_CHRONO_HAS_CLOCK_STEADY" title="Macro BOOST_CHRONO_HAS_CLOCK_STEADY"><code class="computeroutput"><span class="identifier">BOOST_CHRONO_HAS_CLOCK_STEADY</span></code></a> <span class="keyword">typedef</span> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.steady_clock" title="Class steady_clock"><code class="computeroutput"><span class="identifier">steady_clock</span></code></a> <span class="identifier">high_resolution_clock</span><span class="special">;</span> <span class="comment">// as permitted by [time.clock.hires]</span> <span class="preprocessor">#else</span> <span class="keyword">typedef</span> <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.system_clock" title="Class system_clock"><code class="computeroutput"><span class="identifier">system_clock</span></code></a> <span class="identifier">high_resolution_clock</span><span class="special">;</span> <span class="comment">// as permitted by [time.clock.hires]</span> <span class="preprocessor">#endif</span> </pre> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.system_clocks_hpp.clock_string_system_clock"></a><a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.clock_string_system_clock" title="clock_string&lt;system_clock&gt; Specialization"><code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">system_clock</span><span class="special">&gt;</span></code> Specialization</a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">system_clock</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">{</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">name</span><span class="special">();</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">since</span><span class="special">();</span> <span class="special">};</span> </pre> <p> <code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;&gt;::</span><span class="identifier">name</span><span class="special">()</span></code> returns "system_clock". </p> <p> <code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;&gt;::</span><span class="identifier">since</span><span class="special">()</span></code> returns " since Jan 1, 1970" </p> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.system_clocks_hpp.clock_string_steady_clock"></a><a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.clock_string_steady_clock" title="clock_string&lt;steady_clock&gt; Specialization"><code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">steady_clock</span><span class="special">&gt;</span></code> Specialization</a> </h5></div></div></div> <pre class="programlisting"><span class="preprocessor">#ifdef</span> <span class="identifier">BOOST_CHRONO_HAS_CLOCK_STEADY</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">steady_clock</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">{</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">name</span><span class="special">();</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">since</span><span class="special">();</span> <span class="special">};</span> <span class="preprocessor">#endif</span> </pre> <p> <code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;&gt;::</span><span class="identifier">name</span><span class="special">()</span></code> returns "steady_clock". </p> <p> <code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;&gt;::</span><span class="identifier">since</span><span class="special">()</span></code> returns " since boot" </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.cpp0x.clock_strings_hpp"></a><a class="link" href="reference.html#chrono.reference.cpp0x.clock_strings_hpp" title="Header &lt;boost/chrono/clock_strings.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">clock_strings</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"><dt><span class="section"><a href="reference.html#chrono.reference.cpp0x.clock_strings_hpp.clock_string">Template Class <code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;&gt;</span></code></a></span></dt></dl></div> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">clock_string</span><span class="special">;</span> <span class="special">}</span> <span class="special">}</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.cpp0x.clock_strings_hpp.clock_string"></a><a class="link" href="reference.html#chrono.reference.cpp0x.clock_strings_hpp.clock_string" title="Template Class clock_string&lt;&gt;">Template Class <code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;&gt;</span></code></a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">clock_string</span><span class="special">;</span> </pre> <p> This template must be specialized for specific clocks. The specialization must define the following functions </p> <pre class="programlisting"><span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">name</span><span class="special">();</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">since</span><span class="special">();</span> </pre> <p> <code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;&gt;::</span><span class="identifier">name</span><span class="special">()</span></code> return the clock name, which usually corresponds to the class name. </p> <p> <code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;&gt;::</span><span class="identifier">since</span><span class="special">()</span></code> return the textual format of the clock epoch. </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.cpp0x.chrono_typeof_hpp"></a><a class="link" href="reference.html#chrono.reference.cpp0x.chrono_typeof_hpp" title="Header &lt;boost/chrono/typeof/boost/chrono/chrono.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">typeof</span><span class="special">/</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <p> Register <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><code class="computeroutput"><span class="special">&lt;&gt;</span></code> and <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><code class="computeroutput"><span class="special">&lt;&gt;</span></code> class templates to <span class="bold"><strong>Boost.Typeof</strong></span>. </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> <a name="chrono.reference.io_v1"></a><a class="link" href="reference.html#chrono.reference.io_v1" title="Chrono I/O V1">Chrono I/O V1</a> </h3></div></div></div> <div class="toc"><dl class="toc"><dt><span class="section"><a href="reference.html#chrono.reference.io_v1.chrono_io_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">chrono_io</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt></dl></div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.io_v1.chrono_io_hpp"></a><a class="link" href="reference.html#chrono.reference.io_v1.chrono_io_hpp" title="Header &lt;boost/chrono/chrono_io.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">chrono_io</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"> <dt><span class="section"><a href="reference.html#chrono.reference.io_v1.chrono_io_hpp.duration_punct">Template Class <code class="computeroutput"><span class="identifier">duration_punct</span><span class="special">&lt;&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io_v1.chrono_io_hpp.manipulators">I/O Manipulators</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io_v1.chrono_io_hpp.streams">I/O Streams Operations</a></span></dt> </dl></div> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">class</span> <span class="identifier">duration_punct</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">duration_short</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">os</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">duration_long</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">os</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&lt;&lt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">os</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&gt;&gt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">)</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&lt;&lt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">os</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration</span><span class="special">&gt;&amp;</span> <span class="identifier">tp</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&gt;&gt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration</span><span class="special">&gt;&amp;</span> <span class="identifier">tp</span><span class="special">);</span> <span class="special">}</span> <span class="special">}</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io_v1.chrono_io_hpp.duration_punct"></a><a class="link" href="reference.html#chrono.reference.io_v1.chrono_io_hpp.duration_punct" title="Template Class duration_punct&lt;&gt;">Template Class <code class="computeroutput"><span class="identifier">duration_punct</span><span class="special">&lt;&gt;</span></code></a> </h5></div></div></div> <p> The <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> unit names can be customized through the facet: <a class="link" href="reference.html#chrono.reference.io_v1.chrono_io_hpp.duration_punct" title="Template Class duration_punct&lt;&gt;"><code class="computeroutput"><span class="identifier">duration_punct</span></code></a>. <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> unit names come in two varieties: long and short. The default constructed <a class="link" href="reference.html#chrono.reference.io_v1.chrono_io_hpp.duration_punct" title="Template Class duration_punct&lt;&gt;"><code class="computeroutput"><span class="identifier">duration_punct</span></code></a> provides names in the long format. These names are English descriptions. Other languages are supported by constructing a <a class="link" href="reference.html#chrono.reference.io_v1.chrono_io_hpp.duration_punct" title="Template Class duration_punct&lt;&gt;"><code class="computeroutput"><span class="identifier">duration_punct</span></code></a> with the proper spellings for "hours", "minutes" and "seconds", and their abbreviations (for the short format). </p> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">class</span> <span class="identifier">duration_punct</span> <span class="special">:</span> <span class="keyword">public</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span><span class="special">::</span><span class="identifier">facet</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">string_type</span><span class="special">;</span> <span class="keyword">enum</span> <span class="special">{</span><span class="identifier">use_long</span><span class="special">,</span> <span class="identifier">use_short</span><span class="special">};</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span><span class="special">::</span><span class="identifier">id</span> <span class="identifier">id</span><span class="special">;</span> <span class="keyword">explicit</span> <span class="identifier">duration_punct</span><span class="special">(</span><span class="keyword">int</span> <span class="identifier">use</span> <span class="special">=</span> <span class="identifier">use_long</span><span class="special">);</span> <span class="identifier">duration_punct</span><span class="special">(</span><span class="keyword">int</span> <span class="identifier">use</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">&amp;</span> <span class="identifier">long_seconds</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">&amp;</span> <span class="identifier">long_minutes</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">&amp;</span> <span class="identifier">long_hours</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">&amp;</span> <span class="identifier">short_seconds</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">&amp;</span> <span class="identifier">short_minutes</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">&amp;</span> <span class="identifier">short_hours</span><span class="special">);</span> <span class="identifier">duration_punct</span><span class="special">(</span><span class="keyword">int</span> <span class="identifier">use</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration_punct</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">string_type</span> <span class="identifier">short_name</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">string_type</span> <span class="identifier">long_name</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">string_type</span> <span class="identifier">name</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">bool</span> <span class="identifier">is_short_name</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">bool</span> <span class="identifier">is_long_name</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> <span class="special">};</span> </pre> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io_v1.chrono_io_hpp.manipulators"></a><a class="link" href="reference.html#chrono.reference.io_v1.chrono_io_hpp.manipulators" title="I/O Manipulators">I/O Manipulators</a> </h5></div></div></div> <p> The short or long format can be easily chosen by streaming a <code class="computeroutput"><span class="identifier">duration_short</span></code> or <code class="computeroutput"><span class="identifier">duration_long</span></code> manipulator respectively. </p> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">duration_short</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">os</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Set the <a class="link" href="reference.html#chrono.reference.io_v1.chrono_io_hpp.duration_punct" title="Template Class duration_punct&lt;&gt;"><code class="computeroutput"><span class="identifier">duration_punct</span></code></a> facet to stream <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>s and <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a>s as abbreviations. </p> <p> <span class="bold"><strong>Returns:</strong></span> the output stream </p> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">duration_long</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">os</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Set the <a class="link" href="reference.html#chrono.reference.io_v1.chrono_io_hpp.duration_punct" title="Template Class duration_punct&lt;&gt;"><code class="computeroutput"><span class="identifier">duration_punct</span></code></a> facet to stream durations and time_points as long text. </p> <p> <span class="bold"><strong>Returns:</strong></span> the output stream </p> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io_v1.chrono_io_hpp.streams"></a><a class="link" href="reference.html#chrono.reference.io_v1.chrono_io_hpp.streams" title="I/O Streams Operations">I/O Streams Operations</a> </h5></div></div></div> <p> Any <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> can be streamed out to a <code class="computeroutput"><span class="identifier">basic_ostream</span></code>. The run-time value of the <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> is formatted according to the rules and current format settings for <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><code class="computeroutput"><span class="special">::</span><span class="identifier">rep</span></code>. This is followed by a single space and then the compile-time unit name of the <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a>. This unit name is built on the string returned from <code class="computeroutput"><span class="identifier">ratio_string</span><span class="special">&lt;&gt;</span></code> and the data used to construct the <a class="link" href="reference.html#chrono.reference.io_v1.chrono_io_hpp.duration_punct" title="Template Class duration_punct&lt;&gt;"><code class="computeroutput"><span class="identifier">duration_punct</span></code></a> which was inserted into the stream's locale. If a <a class="link" href="reference.html#chrono.reference.io_v1.chrono_io_hpp.duration_punct" title="Template Class duration_punct&lt;&gt;"><code class="computeroutput"><span class="identifier">duration_punct</span></code></a> has not been inserted into the stream's locale, a default constructed <a class="link" href="reference.html#chrono.reference.io_v1.chrono_io_hpp.duration_punct" title="Template Class duration_punct&lt;&gt;"><code class="computeroutput"><span class="identifier">duration_punct</span></code></a> will be added to the stream's locale. </p> <p> A <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> is formatted by outputting its internal <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> followed by a string that describes the <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><code class="computeroutput"><span class="special">::</span><span class="identifier">clock</span></code> epoch. This string will vary for each distinct clock, and for each implementation of the supplied clocks. </p> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&lt;&lt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">os</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> outputs the <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> as an abbreviated or long text format depending on the state of the <a class="link" href="reference.html#chrono.reference.io_v1.chrono_io_hpp.duration_punct" title="Template Class duration_punct&lt;&gt;"><code class="computeroutput"><span class="identifier">duration_punct</span></code></a> facet. </p> <p> <span class="bold"><strong>Returns:</strong></span> the output stream </p> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&gt;&gt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">)</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> reads a <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> from the input stream. If a format error is found, the input stream state will be set to <code class="computeroutput"><span class="identifier">failbit</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> the input stream </p> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&lt;&lt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">os</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration</span><span class="special">&gt;&amp;</span> <span class="identifier">tp</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> outputs the <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> as an abbreviated or long text format depending on the state of the <a class="link" href="reference.html#chrono.reference.io_v1.chrono_io_hpp.duration_punct" title="Template Class duration_punct&lt;&gt;"><code class="computeroutput"><span class="identifier">duration_punct</span></code></a> facet. </p> <p> <span class="bold"><strong>Returns:</strong></span> the output stream </p> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&gt;&gt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration</span><span class="special">&gt;&amp;</span> <span class="identifier">tp</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> reads a <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> from the input stream. If a format error is found, the input stream state will be set to <code class="computeroutput"><span class="identifier">failbit</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> the input stream </p> </div> </div> </div> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> <a name="chrono.reference.io"></a><a class="link" href="reference.html#chrono.reference.io" title="Chrono I/O V2">Chrono I/O V2</a> </h3></div></div></div> <div class="toc"><dl class="toc"> <dt><span class="section"><a href="reference.html#chrono.reference.io.chrono_io_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">chrono_io</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io.duration_style_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">duration_style</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io.timezone_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">timezone</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io.ios_state_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">ios_base_state</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io.duration_get_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">duration_get</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io.duration_put_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">duration_put</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io.duration_units_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">duration_units</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io.duration_io_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">duration_io</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io.time_point_get_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">time_point_get</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io.time_point_put_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">time_point_put</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io.time_point_units_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">time_point_units</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io.time_point_io_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">time_point_io</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> </dl></div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.io.chrono_io_hpp"></a><a class="link" href="reference.html#chrono.reference.io.chrono_io_hpp" title="Header &lt;boost/chrono/chrono_io.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">chrono_io</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <p> This file includes the i/o of the two major components, duration and time_point. </p> <pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">duration_style</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">timezone</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">ios_base_state</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">duration_get</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">duration_put</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">duration_units</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">duration_io</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">time_point_get</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">time_point_put</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">time_point_units</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">time_point_io</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> </pre> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.io.duration_style_hpp"></a><a class="link" href="reference.html#chrono.reference.io.duration_style_hpp" title="Header &lt;boost/chrono/io/duration_style.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">duration_style</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"><dt><span class="section"><a href="reference.html#chrono.reference.io.duration_style_hpp.duration_style">Scoped enum <code class="computeroutput"><span class="identifier">duration_style</span></code></a></span></dt></dl></div> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="comment">// typedefs</span> <span class="keyword">enum</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.io.duration_style_hpp.duration_style" title="Scoped enum duration_style"><code class="computeroutput"><span class="identifier">duration_style</span></code></a> <span class="special">{</span> <a class="link" href="reference.html#chrono.reference.io.duration_style_hpp.duration_style" title="Scoped enum duration_style"><code class="computeroutput"><span class="identifier">prefix</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.io.duration_style_hpp.duration_style" title="Scoped enum duration_style"><code class="computeroutput"><span class="identifier">symbol</span></code></a> <span class="special">};</span> <span class="special">}</span> <span class="special">}</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io.duration_style_hpp.duration_style"></a><a class="link" href="reference.html#chrono.reference.io.duration_style_hpp.duration_style" title="Scoped enum duration_style">Scoped enum <code class="computeroutput"><span class="identifier">duration_style</span></code></a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">enum</span> <span class="keyword">class</span> <span class="identifier">duration_style</span> <span class="special">{</span> <span class="identifier">prefix</span><span class="special">,</span> <span class="identifier">symbol</span> <span class="special">};</span> </pre> <p> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> unit names come in two varieties: prefix and symbol. </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.io.timezone_hpp"></a><a class="link" href="reference.html#chrono.reference.io.timezone_hpp" title="Header &lt;boost/chrono/io/timezone.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">timezone</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"><dt><span class="section"><a href="reference.html#chrono.reference.io.timezone_hpp.timezone">Scoped enum <code class="computeroutput"><span class="identifier">timezone</span></code></a></span></dt></dl></div> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="keyword">struct</span> <a class="link" href="reference.html#chrono.reference.io.timezone_hpp.timezone" title="Scoped enum timezone"><code class="computeroutput"><span class="identifier">timezone</span></code></a> <span class="special">{</span> <span class="keyword">enum</span> <span class="identifier">type</span> <span class="special">{</span> <a class="link" href="reference.html#chrono.reference.io.timezone_hpp.timezone" title="Scoped enum timezone"><code class="computeroutput"><span class="identifier">utc</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.io.timezone_hpp.timezone" title="Scoped enum timezone"><code class="computeroutput"><span class="identifier">local</span></code></a> <span class="special">};</span> <span class="special">};</span> <span class="special">}</span> <span class="special">}</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io.timezone_hpp.timezone"></a><a class="link" href="reference.html#chrono.reference.io.timezone_hpp.timezone" title="Scoped enum timezone">Scoped enum <code class="computeroutput"><span class="identifier">timezone</span></code></a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">enum</span> <span class="keyword">class</span> <span class="identifier">timezone</span> <span class="special">{</span> <span class="identifier">utc</span><span class="special">,</span> <span class="identifier">local</span> <span class="special">};</span> </pre> </div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.io.ios_state_hpp"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp" title="Header &lt;boost/chrono/io/ios_base_state.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">ios_base_state</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"> <dt><span class="section"><a href="reference.html#chrono.reference.io.ios_state_hpp.sag">Setter and getters</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io.ios_state_hpp.ioss">I/O State Savers</a></span></dt> </dl></div> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="comment">// setters and getters</span> <span class="identifier">duration_style</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.get_duration_style" title="Non Member Function get_duration_style(std::ios_base &amp;)"><code class="computeroutput"><span class="identifier">get_duration_style</span></code></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">);</span> <span class="keyword">void</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.set_duration_style" title="Non Member Function set_duration_style(std::ios_base &amp;,duration_style)"><code class="computeroutput"><span class="identifier">set_duration_style</span></code></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">);</span> <span class="identifier">timezone</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.get_timezone" title="Non Member Function get_timezone(std::ios_base&amp;)"><code class="computeroutput"><span class="identifier">get_timezone</span></code></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">);</span> <span class="keyword">void</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.set_timezone" title="Non Member Function set_timezone(std::ios_base&amp;,duration_style)"><code class="computeroutput"><span class="identifier">set_timezone</span></code></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">timezone</span> <span class="identifier">tz</span><span class="special">);</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.get_time_fmt" title="Non Member Function get_time_fmt(std::ios_base &amp;)"><code class="computeroutput"><span class="identifier">get_time_fmt</span></code></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">);</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">void</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.set_time_fmt" title="Non Member Function set_time_fmt(std::ios_base&amp;, std::basic_string&lt;CharT&gt; const&amp;)"><code class="computeroutput"><span class="identifier">set_time_fmt</span></code></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">fmt</span><span class="special">);</span> <span class="comment">// i/o state savers</span> <span class="keyword">struct</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.duration_style_io_saver" title="Template Class duration_style_io_saver"><code class="computeroutput"><span class="identifier">duration_style_io_saver</span></code></a><span class="special">;</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span> <span class="special">=</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Traits</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">char_traits</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver" title="Template Class timezone_io_saver&lt;&gt;"><code class="computeroutput"><span class="identifier">timezone_io_saver</span></code></a><span class="special">;</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span> <span class="special">=</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Traits</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">char_traits</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver" title="Template Class time_fmt_io_saver&lt;&gt;"><code class="computeroutput"><span class="identifier">time_fmt_io_saver</span></code></a><span class="special">;</span> <span class="special">}</span> <span class="special">}</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io.ios_state_hpp.sag"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag" title="Setter and getters">Setter and getters</a> </h5></div></div></div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.sag.get_duration_style"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.get_duration_style" title="Non Member Function get_duration_style(std::ios_base &amp;)">Non Member Function <code class="computeroutput"><span class="identifier">get_duration_style</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="identifier">duration_style</span> <span class="identifier">get_duration_style</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> The stream's <a class="link" href="reference.html#chrono.reference.io.duration_style_hpp.duration_style" title="Scoped enum duration_style"><code class="computeroutput"><span class="identifier">duration_style</span></code></a> attribute associated to <code class="computeroutput"><span class="identifier">ios</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.sag.set_duration_style"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.set_duration_style" title="Non Member Function set_duration_style(std::ios_base &amp;,duration_style)">Non Member Function <code class="computeroutput"><span class="identifier">set_duration_style</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;,</span><span class="identifier">duration_style</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">void</span> <span class="identifier">set_duration_style</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Set the stream's <a class="link" href="reference.html#chrono.reference.io.duration_style_hpp.duration_style" title="Scoped enum duration_style"><code class="computeroutput"><span class="identifier">duration_style</span></code></a> attribute associated to <code class="computeroutput"><span class="identifier">ios</span></code> with the <code class="computeroutput"><span class="identifier">style</span></code> parameter. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.sag.get_timezone"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.get_timezone" title="Non Member Function get_timezone(std::ios_base&amp;)">Non Member Function <code class="computeroutput"><span class="identifier">get_timezone</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="identifier">timezone</span> <span class="identifier">get_timezone</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> The stream's <a class="link" href="reference.html#chrono.reference.io.timezone_hpp.timezone" title="Scoped enum timezone"><code class="computeroutput"><span class="identifier">timezone</span></code></a> attribute associated to <code class="computeroutput"><span class="identifier">ios</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.sag.set_timezone"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.set_timezone" title="Non Member Function set_timezone(std::ios_base&amp;,duration_style)">Non Member Function <code class="computeroutput"><span class="identifier">set_timezone</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;,</span><span class="identifier">duration_style</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">void</span> <span class="identifier">set_timezone</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">timezone</span> <span class="identifier">tz</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Set the stream's <a class="link" href="reference.html#chrono.reference.io.timezone_hpp.timezone" title="Scoped enum timezone"><code class="computeroutput"><span class="identifier">timezone</span></code></a> attribute associated to <code class="computeroutput"><span class="identifier">ios</span></code> with the <code class="computeroutput"><span class="identifier">tz</span></code> parameter. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.sag.get_time_fmt"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.get_time_fmt" title="Non Member Function get_time_fmt(std::ios_base &amp;)">Non Member Function <code class="computeroutput"><span class="identifier">get_time_fmt</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">get_time_fmt</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> The stream's time format attribute associated to <code class="computeroutput"><span class="identifier">ios</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.sag.set_time_fmt"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.set_time_fmt" title="Non Member Function set_time_fmt(std::ios_base&amp;, std::basic_string&lt;CharT&gt; const&amp;)">Non Member Function <code class="computeroutput"><span class="identifier">set_time_fmt</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">void</span> <span class="identifier">set_time_fmt</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">fmt</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Set the stream's time format attribute associated to <code class="computeroutput"><span class="identifier">ios</span></code> with the <code class="computeroutput"><span class="identifier">fmt</span></code> parameter. </p> <p> The format is composed of zero or more directives. Each directive is composed of one of the following: </p> <pre class="programlisting"><span class="special">*</span> <span class="identifier">one</span> <span class="keyword">or</span> <span class="identifier">more</span> <span class="identifier">white</span><span class="special">-</span><span class="identifier">space</span> <span class="identifier">characters</span> <span class="special">(</span><span class="identifier">as</span> <span class="identifier">specified</span> <span class="identifier">by</span> <span class="identifier">isspace</span><span class="special">());</span> <span class="special">*</span> <span class="identifier">an</span> <span class="identifier">ordinary</span> <span class="identifier">character</span> <span class="special">(</span><span class="identifier">neither</span> <span class="char">'%'</span> <span class="identifier">nor</span> <span class="identifier">a</span> <span class="identifier">white</span><span class="special">-</span><span class="identifier">space</span> <span class="identifier">character</span><span class="special">);</span> <span class="special">*</span> <span class="keyword">or</span> <span class="identifier">a</span> <span class="identifier">conversion</span> <span class="identifier">specification</span><span class="special">.</span> </pre> <p> Each conversion specification is composed of a '%' character followed by a conversion character which specifies the replacement required. The application shall ensure that there is white-space or other non-alphanumeric characters between any two conversion specifications. The following conversion specifications are supported: </p> <div class="table"> <a name="chrono.reference.io.ios_state_hpp.sag.set_time_fmt.format_tags"></a><p class="title"><b>Table&#160;7.3.&#160;Format tags</b></p> <div class="table-contents"><table class="table" summary="Format tags"> <colgroup> <col> <col> <col> </colgroup> <thead><tr> <th> <p> Format Specifier </p> </th> <th> <p> Description </p> </th> <th> <p> Example </p> </th> </tr></thead> <tbody> <tr> <td> <p> <code class="computeroutput"><span class="special">%%</span></code> </p> </td> <td> <p> Replaced by <code class="computeroutput"><span class="special">%</span></code>. </p> </td> <td> <p> . </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">a</span> <span class="special">%</span><span class="identifier">A</span></code> </p> </td> <td> <p> The day of the week, using the locale's weekday names; either the abbreviated or full name may be specified. </p> </td> <td> <p> "Monday". </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">b</span> <span class="special">%</span><span class="identifier">B</span> <span class="special">%</span><span class="identifier">h</span></code> </p> </td> <td> <p> The month, using the locale's month names; either the abbreviated or full name may be specified. </p> </td> <td> <p> "February". </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">c</span></code> </p> </td> <td> <p> Not supported. </p> </td> <td> <p> . </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">d</span> <span class="special">%</span><span class="identifier">e</span></code> </p> </td> <td> <p> The day of the month <code class="computeroutput"><span class="special">[</span><span class="number">01</span><span class="special">,</span><span class="number">31</span><span class="special">]</span></code>; leading zeros are permitted but not required.. </p> </td> <td> <p> . </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">D</span></code> </p> </td> <td> <p> The date as <code class="computeroutput"><span class="special">%</span><span class="identifier">m</span><span class="special">/%</span><span class="identifier">d</span><span class="special">/%</span><span class="identifier">y</span></code>. </p> </td> <td> <p> . </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">F</span></code> </p> </td> <td> <p> The date as <code class="computeroutput"><span class="special">%</span><span class="identifier">Y</span><span class="special">/%</span><span class="identifier">m</span><span class="special">/%</span><span class="identifier">d</span></code>. </p> </td> <td> <p> . </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">H</span></code> </p> </td> <td> <p> The hour (24-hour clock) <code class="computeroutput"><span class="special">[</span><span class="number">00</span><span class="special">,</span><span class="number">23</span><span class="special">]</span></code>; leading zeros are permitted but not required. </p> </td> <td> <p> . </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">I</span></code> </p> </td> <td> <p> The hour (12-hour clock) <code class="computeroutput"><span class="special">[</span><span class="number">01</span><span class="special">,</span><span class="number">12</span><span class="special">]</span></code>; leading zeros are permitted but not required. </p> </td> <td> <p> . </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">j</span></code> </p> </td> <td> <p> The day number of the year <code class="computeroutput"><span class="special">[</span><span class="number">001</span><span class="special">,</span><span class="number">366</span><span class="special">]</span></code>; leading zeros are permitted but not required. </p> </td> <td> <p> "060" =&gt; Feb-29. </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">m</span></code> </p> </td> <td> <p> The month number <code class="computeroutput"><span class="special">[</span><span class="number">01</span><span class="special">,</span><span class="number">12</span><span class="special">]</span></code>; leading zeros are permitted but not required.. </p> </td> <td> <p> "01" =&gt; January. </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">M</span></code> </p> </td> <td> <p> The minute <code class="computeroutput"><span class="special">[</span><span class="number">00</span><span class="special">,</span><span class="number">59</span><span class="special">]</span></code>; leading zeros are permitted but not required. </p> </td> <td> <p> . </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">n</span> <span class="special">%</span><span class="identifier">t</span></code> </p> </td> <td> <p> Any white space.. </p> </td> <td> <p> . </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">p</span></code> </p> </td> <td> <p> Not supported. </p> </td> <td> <p> . </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">r</span></code> </p> </td> <td> <p> Not supported. </p> </td> <td> <p> . </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">R</span></code> </p> </td> <td> <p> The time as <code class="computeroutput"><span class="special">%</span><span class="identifier">H</span><span class="special">:%</span><span class="identifier">M</span></code>. </p> </td> <td> <p> . </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">S</span></code> </p> </td> <td> <p> The seconds <code class="computeroutput"><span class="special">[</span><span class="number">00</span><span class="special">,</span><span class="number">60</span><span class="special">]</span></code>; leading zeros are permitted but not required. </p> </td> <td> <p> . </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">T</span></code> </p> </td> <td> <p> The time as <code class="computeroutput"><span class="special">%</span><span class="identifier">H</span><span class="special">:%</span><span class="identifier">M</span><span class="special">:%</span><span class="identifier">S</span></code>. </p> </td> <td> <p> . </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">U</span></code> </p> </td> <td> <p> Not supported. </p> </td> <td> <p> . </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">w</span></code> </p> </td> <td> <p> The weekday as a decimal number <code class="computeroutput"><span class="special">[</span><span class="number">0</span><span class="special">,</span><span class="number">6</span><span class="special">]</span></code>, with 0 representing Sunday; leading zeros are permitted but not required.. </p> </td> <td> <p> "0" =&gt; Sunday. </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">W</span></code> </p> </td> <td> <p> Not supported. </p> </td> <td> <p> . </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">x</span></code> </p> </td> <td> <p> The date, using the locale's date format.. </p> </td> <td> <p> . </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">X</span></code> </p> </td> <td> <p> Not supported. </p> </td> <td> <p> . </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">y</span></code> </p> </td> <td> <p> Not supported. </p> </td> <td> <p> "2005". </p> </td> </tr> <tr> <td> <p> <code class="computeroutput"><span class="special">%</span><span class="identifier">Y</span></code> </p> </td> <td> <p> The year, including the century (for example, 1988). </p> </td> <td> <p> . </p> </td> </tr> </tbody> </table></div> </div> <br class="table-break"> </div> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io.ios_state_hpp.ioss"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss" title="I/O State Savers">I/O State Savers</a> </h5></div></div></div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.ioss.duration_style_io_saver"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.duration_style_io_saver" title="Template Class duration_style_io_saver">Template Class <code class="computeroutput"><span class="identifier">duration_style_io_saver</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="comment">// i/o state savers</span> <span class="keyword">struct</span> <span class="identifier">duration_style_io_saver</span> <span class="special">{</span> <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="identifier">state_type</span><span class="special">;</span> <span class="comment">// the state type is ios_base</span> <span class="keyword">typedef</span> <a class="link" href="reference.html#chrono.reference.io.duration_style_hpp.duration_style" title="Scoped enum duration_style"><code class="computeroutput"><span class="identifier">duration_style</span></code></a> <span class="identifier">aspect_type</span><span class="special">;</span> <span class="comment">// the aspect type is the __duration_style</span> <span class="keyword">explicit</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.duration_style_io_saver.c1" title="Constructor duration_style_io_saver(state_type&amp;)"><code class="computeroutput"><span class="identifier">duration_style_io_saver</span></code></a><span class="special">(</span><span class="identifier">state_type</span> <span class="special">&amp;</span><span class="identifier">s</span><span class="special">);</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.duration_style_io_saver.c2" title="Constructor duration_style_io_saver(state_type&amp;, aspect_type)"><code class="computeroutput"><span class="identifier">duration_style_io_saver</span></code></a><span class="special">(</span><span class="identifier">state_type</span> <span class="special">&amp;</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">aspect_type</span> <span class="identifier">new_value</span><span class="special">);</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.duration_style_io_saver.d" title="Destructor ~duration_style_io_saver()"><code class="computeroutput"><span class="special">~</span><span class="identifier">duration_style_io_saver</span></code></a><span class="special">();</span> <span class="keyword">void</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.duration_style_io_saver.restore" title="Member Function restore()"><code class="computeroutput"><span class="identifier">restore</span></code></a><span class="special">();</span> <span class="special">};</span> </pre> <p> The <code class="computeroutput"><span class="identifier">state_type</span></code> is a version of the IOStreams base class <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span></code>. </p> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.ioss.duration_style_io_saver.c1"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.duration_style_io_saver.c1" title="Constructor duration_style_io_saver(state_type&amp;)">Constructor <code class="computeroutput"><span class="identifier">duration_style_io_saver</span><span class="special">(</span><span class="identifier">state_type</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <p> This constructor takes a stream object and saves a reference to the stream and the current value of a particular stream attribute. </p> <pre class="programlisting"><span class="keyword">explicit</span> <span class="identifier">duration_style_io_saver</span><span class="special">(</span><span class="identifier">state_type</span> <span class="special">&amp;</span><span class="identifier">s</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Constructs a <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.duration_style_io_saver" title="Template Class duration_style_io_saver"><code class="computeroutput"><span class="identifier">duration_style_io_saver</span></code></a> by storing <code class="computeroutput"><span class="identifier">s</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.ioss.duration_style_io_saver.c2"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.duration_style_io_saver.c2" title="Constructor duration_style_io_saver(state_type&amp;, aspect_type)">Constructor <code class="computeroutput"><span class="identifier">duration_style_io_saver</span><span class="special">(</span><span class="identifier">state_type</span><span class="special">&amp;,</span> <span class="identifier">aspect_type</span><span class="special">)</span></code></a> </h6></div></div></div> <p> This constructor works like the previous one, and in addition uses its second argument to change the stream's attribute to the new <code class="computeroutput"><span class="identifier">aspect_type</span></code> value given. </p> <pre class="programlisting"><span class="keyword">explicit</span> <span class="identifier">duration_style_io_saver</span><span class="special">(</span><span class="identifier">state_type</span> <span class="special">&amp;</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">aspect_type</span> <span class="identifier">new_value</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Constructs a <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.duration_style_io_saver" title="Template Class duration_style_io_saver"><code class="computeroutput"><span class="identifier">duration_style_io_saver</span></code></a> by storing <code class="computeroutput"><span class="identifier">s</span></code>. Sets the <code class="computeroutput"><span class="identifier">state_type</span></code> <code class="computeroutput"><span class="identifier">aspect_type</span></code> with the value <code class="computeroutput"><span class="identifier">new_value</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.ioss.duration_style_io_saver.d"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.duration_style_io_saver.d" title="Destructor ~duration_style_io_saver()">Destructor <code class="computeroutput"><span class="special">~</span><span class="identifier">duration_style_io_saver</span><span class="special">()</span></code></a> </h6></div></div></div> <p> The destructor restores the stream's attribute to the saved value. </p> <pre class="programlisting"><span class="special">~</span><span class="identifier">duration_style_io_saver</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> As if <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.duration_style_io_saver.restore" title="Member Function restore()"><code class="computeroutput"><span class="identifier">restore</span></code></a>(). </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.ioss.duration_style_io_saver.restore"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.duration_style_io_saver.restore" title="Member Function restore()">Member Function <code class="computeroutput"><span class="identifier">restore</span><span class="special">()</span></code></a> </h6></div></div></div> <p> The restoration can be activated early (and often) with the restore member function. </p> <pre class="programlisting"><span class="keyword">void</span> <span class="identifier">restore</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Restores the stream's <a class="link" href="reference.html#chrono.reference.io.duration_style_hpp.duration_style" title="Scoped enum duration_style"><code class="computeroutput"><span class="identifier">duration_style</span></code></a> attribute to the saved value. </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver" title="Template Class timezone_io_saver&lt;&gt;">Template Class <code class="computeroutput"><span class="identifier">timezone_io_saver</span><span class="special">&lt;&gt;</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span> <span class="special">=</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Traits</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">char_traits</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver" title="Template Class timezone_io_saver&lt;&gt;"><code class="computeroutput"><span class="identifier">timezone_io_saver</span></code></a> <span class="special">{</span> <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ios</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;</span> <span class="identifier">state_type</span><span class="special">;</span> <span class="keyword">typedef</span> <a class="link" href="reference.html#chrono.reference.io.timezone_hpp.timezone" title="Scoped enum timezone"><code class="computeroutput"><span class="identifier">timezone</span></code></a> <span class="identifier">aspect_type</span><span class="special">;</span> <span class="keyword">explicit</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver.c1" title="Constructor timezone_io_saver(state_type&amp;)"><code class="computeroutput"><span class="identifier">timezone_io_saver</span></code></a><span class="special">(</span><span class="identifier">state_type</span> <span class="special">&amp;</span><span class="identifier">s</span><span class="special">);</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver.c2" title="Constructor timezone_io_saver(state_type&amp;, aspect_type)"><code class="computeroutput"><span class="identifier">timezone_io_saver</span></code></a><span class="special">(</span><span class="identifier">state_type</span> <span class="special">&amp;</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">aspect_type</span> <span class="identifier">new_value</span><span class="special">);</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver.d" title="Destructor ~timezone_io_saver()"><code class="computeroutput"><span class="special">~</span><span class="identifier">timezone_io_saver</span></code></a><span class="special">();</span> <span class="keyword">void</span> <span class="identifier">timezone_io_saver__restore</span><span class="special">();</span> <span class="special">};</span> </pre> <p> The <code class="computeroutput"><span class="identifier">state_type</span></code> is a version of the IOStreams base class template <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ios</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;</span></code>, where <code class="computeroutput"><span class="identifier">CharT</span></code> is a character type and <code class="computeroutput"><span class="identifier">Traits</span></code> is a character traits class. The user would usually place an actual input, output, or combined stream object for the state-type parameter, and not a base class object. </p> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver.c1"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver.c1" title="Constructor timezone_io_saver(state_type&amp;)">Constructor <code class="computeroutput"><span class="identifier">timezone_io_saver</span><span class="special">(</span><span class="identifier">state_type</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <p> This constructor takes a stream object and saves a reference to the stream and the current value of a particular stream attribute. </p> <pre class="programlisting"><span class="keyword">explicit</span> <span class="identifier">timezone_io_saver</span><span class="special">(</span><span class="identifier">state_type</span> <span class="special">&amp;</span><span class="identifier">s</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Constructs a <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver" title="Template Class timezone_io_saver&lt;&gt;"><code class="computeroutput"><span class="identifier">timezone_io_saver</span></code></a> by storing <code class="computeroutput"><span class="identifier">s</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver.c2"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver.c2" title="Constructor timezone_io_saver(state_type&amp;, aspect_type)">Constructor <code class="computeroutput"><span class="identifier">timezone_io_saver</span><span class="special">(</span><span class="identifier">state_type</span><span class="special">&amp;,</span> <span class="identifier">aspect_type</span><span class="special">)</span></code></a> </h6></div></div></div> <p> This constructor works like the previous one, and uses its second argument to change the stream's attribute to the new aspect_type value given. </p> <pre class="programlisting"><span class="keyword">explicit</span> <span class="identifier">timezone_io_saver</span><span class="special">(</span><span class="identifier">state_type</span> <span class="special">&amp;</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">aspect_type</span> <span class="identifier">new_value</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Constructs a <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver" title="Template Class timezone_io_saver&lt;&gt;"><code class="computeroutput"><span class="identifier">timezone_io_saver</span></code></a> by storing <code class="computeroutput"><span class="identifier">s</span></code>. Sets the <code class="computeroutput"><span class="identifier">state_type</span></code> <code class="computeroutput"><span class="identifier">aspect_type</span></code> with the value <code class="computeroutput"><span class="identifier">new_value</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver.d"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver.d" title="Destructor ~timezone_io_saver()">Destructor <code class="computeroutput"><span class="special">~</span><span class="identifier">timezone_io_saver</span><span class="special">()</span></code></a> </h6></div></div></div> <p> The destructor restores the stream's attribute to the saved value. </p> <pre class="programlisting"><span class="special">~</span><span class="identifier">timezone_io_saver</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> As if <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver.restore" title="Member Function restore()"><code class="computeroutput"><span class="identifier">restore</span></code></a>(). </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver.restore"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver.restore" title="Member Function restore()">Member Function <code class="computeroutput"><span class="identifier">restore</span><span class="special">()</span></code></a> </h6></div></div></div> <p> The restoration can be activated early (and often) with the restore member function. </p> <pre class="programlisting"><span class="keyword">void</span> <span class="identifier">restore</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Restores the stream's <a class="link" href="reference.html#chrono.reference.io.timezone_hpp.timezone" title="Scoped enum timezone"><code class="computeroutput"><span class="identifier">timezone</span></code></a> attribute to the saved value. </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver" title="Template Class time_fmt_io_saver&lt;&gt;">Template Class <code class="computeroutput"><span class="identifier">time_fmt_io_saver</span><span class="special">&lt;&gt;</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span> <span class="special">=</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Traits</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">char_traits</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver" title="Template Class time_fmt_io_saver&lt;&gt;"><code class="computeroutput"><span class="identifier">time_fmt_io_saver</span></code></a> <span class="special">{</span> <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ios</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;</span> <span class="identifier">state_type</span><span class="special">;</span> <span class="keyword">explicit</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver.c1" title="Constructor time_fmt_io_saver(state_type&amp;)"><code class="computeroutput"><span class="identifier">time_fmt_io_saver</span></code></a><span class="special">(</span><span class="identifier">state_type</span> <span class="special">&amp;</span><span class="identifier">s</span><span class="special">);</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver.c2" title="Constructor time_fmt_io_saver(state_type&amp;, aspect_type)"><code class="computeroutput"><span class="identifier">time_fmt_io_saver</span></code></a><span class="special">(</span><span class="identifier">state_type</span> <span class="special">&amp;</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">new_value</span><span class="special">);</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver.d" title="Destructor ~time_fmt_io_saver()"><code class="computeroutput"><span class="special">~</span><span class="identifier">time_fmt_io_saver</span></code></a><span class="special">();</span> <span class="keyword">void</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver.restore" title="Member Function restore()"><code class="computeroutput"><span class="identifier">restore</span></code></a><span class="special">();</span> <span class="special">};</span> </pre> <p> The <code class="computeroutput"><span class="identifier">state_type</span></code> is a version of the IOStreams base class template <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ios</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;</span></code>, where <code class="computeroutput"><span class="identifier">CharT</span></code> is a character type and <code class="computeroutput"><span class="identifier">Traits</span></code> is a character traits class. The user would usually place an actual input, output, or combined stream object for the state-type parameter, and not a base class object. </p> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver.c1"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver.c1" title="Constructor time_fmt_io_saver(state_type&amp;)">Constructor <code class="computeroutput"><span class="identifier">time_fmt_io_saver</span><span class="special">(</span><span class="identifier">state_type</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <p> This constructor takes a stream object and saves a reference to the stream and the current value of a particular stream attribute. </p> <pre class="programlisting"><span class="keyword">explicit</span> <span class="identifier">time_fmt_io_saver</span><span class="special">(</span><span class="identifier">state_type</span> <span class="special">&amp;</span><span class="identifier">s</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Constructs a <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver" title="Template Class time_fmt_io_saver&lt;&gt;"><code class="computeroutput"><span class="identifier">time_fmt_io_saver</span></code></a> by storing <code class="computeroutput"><span class="identifier">s</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver.c2"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver.c2" title="Constructor time_fmt_io_saver(state_type&amp;, aspect_type)">Constructor <code class="computeroutput"><span class="identifier">time_fmt_io_saver</span><span class="special">(</span><span class="identifier">state_type</span><span class="special">&amp;,</span> <span class="identifier">aspect_type</span><span class="special">)</span></code></a> </h6></div></div></div> <p> This constructor works like the previous one, and uses its second argument to change the stream's attribute to the new aspect_type value given. </p> <pre class="programlisting"><span class="keyword">explicit</span> <span class="identifier">time_fmt_io_saver</span><span class="special">(</span><span class="identifier">state_type</span> <span class="special">&amp;</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">aspect_type</span> <span class="identifier">new_value</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Constructs a <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver" title="Template Class time_fmt_io_saver&lt;&gt;"><code class="computeroutput"><span class="identifier">time_fmt_io_saver</span></code></a> by storing <code class="computeroutput"><span class="identifier">s</span></code>. Sets the <code class="computeroutput"><span class="identifier">state_type</span></code> <code class="computeroutput"><span class="identifier">aspect_type</span></code> with the value <code class="computeroutput"><span class="identifier">new_value</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver.d"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver.d" title="Destructor ~time_fmt_io_saver()">Destructor <code class="computeroutput"><span class="special">~</span><span class="identifier">time_fmt_io_saver</span><span class="special">()</span></code></a> </h6></div></div></div> <p> The destructor restores the stream's attribute to the saved value. </p> <pre class="programlisting"><span class="special">~</span><span class="identifier">time_fmt_io_saver</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> As if <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver.restore" title="Member Function restore()"><code class="computeroutput"><span class="identifier">restore</span></code></a>(). </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver.restore"></a><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver.restore" title="Member Function restore()">Member Function <code class="computeroutput"><span class="identifier">restore</span><span class="special">()</span></code></a> </h6></div></div></div> <p> The restoration can be activated early (and often) with the restore member function. </p> <pre class="programlisting"><span class="keyword">void</span> <span class="identifier">restore</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Restores the stream's time format attribute to the saved value. </p> </div> </div> </div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.io.duration_get_hpp"></a><a class="link" href="reference.html#chrono.reference.io.duration_get_hpp" title="Header &lt;boost/chrono/io/duration_get.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">duration_get</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"><dt><span class="section"><a href="reference.html#chrono.reference.io.duration_get_hpp.duration_get">Template Class <code class="computeroutput"><span class="identifier">duration_get</span></code></a></span></dt></dl></div> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">InputIterator</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get" title="Template Class duration_get"><code class="computeroutput"><span class="identifier">duration_get</span></code></a><span class="special">;</span> <span class="special">}</span> <span class="special">}</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io.duration_get_hpp.duration_get"></a><a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get" title="Template Class duration_get">Template Class <code class="computeroutput"><span class="identifier">duration_get</span></code></a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">InputIterator</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="keyword">class</span> <span class="identifier">duration_get</span><span class="special">:</span> <span class="keyword">public</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span><span class="special">::</span><span class="identifier">facet</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">typedef</span> <span class="identifier">CharT</span> <span class="identifier">char_type</span><span class="special">;</span> <span class="comment">// Type of character the facet is instantiated on</span> <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">string_type</span><span class="special">;</span> <span class="comment">// Type of character string passed to member functions.</span> <span class="keyword">typedef</span> <span class="identifier">InputIterator</span> <span class="identifier">iter_type</span><span class="special">;</span> <span class="comment">// Type of iterator used to scan the character buffer.</span> <span class="keyword">explicit</span> <a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get.c" title="Constructor duration_get(size_t)"><code class="computeroutput"><span class="identifier">duration_get</span></code></a><span class="special">(</span><span class="identifier">size_t</span> <span class="identifier">refs</span> <span class="special">=</span> <span class="number">0</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get.get" title="Template Member Function get(iter_type,iter_type,std::ios_base&amp;,std::ios_base::iostate&amp;,duration&lt;Rep,Period&gt;&amp;,const char_type*, const char_type*) const"><code class="computeroutput"><span class="identifier">get</span></code></a><span class="special">(</span> <span class="identifier">iter_type</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">end</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">char_type</span><span class="special">*</span> <span class="identifier">pattern</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">char_type</span><span class="special">*</span> <span class="identifier">pat_end</span> <span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get.get2" title="Template Member Function get(iter_type,iter_type,std::ios_base&amp;,std::ios_base::iostate&amp;,duration&lt;Rep,Period&gt;&amp;) const"><code class="computeroutput"><span class="identifier">get</span></code></a><span class="special">(</span> <span class="identifier">iter_type</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">end</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span> <span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get.get_value" title="Template Member Function get_value(iter_type,iter_type,std::ios_base&amp;,std::ios_base::iostate&amp;,Rep&amp;) const"><code class="computeroutput"><span class="identifier">get_value</span></code></a><span class="special">(</span> <span class="identifier">iter_type</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">end</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">Rep</span><span class="special">&amp;</span> <span class="identifier">r</span> <span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">iter_type</span> <a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get.get_unit" title="Member Function get_unit(iter_type,iter_type,std::ios_base&amp;,std::ios_base::iostate&amp;,rt_ratio&amp;) const"><code class="computeroutput"><span class="identifier">get_unit</span></code></a><span class="special">(</span> <span class="identifier">iter_type</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">detail</span><span class="special">::</span><span class="identifier">rt_ratio</span> <span class="special">&amp;</span><span class="identifier">rt</span> <span class="special">)</span> <span class="keyword">const</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span><span class="special">::</span><span class="identifier">id</span> <span class="identifier">id</span><span class="special">;</span> <span class="comment">// Unique identifier for this type of facet.</span> <a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get.d" title="Destructor ~duration_get()"><code class="computeroutput"><span class="special">~</span><span class="identifier">duration_get</span></code></a><span class="special">()</span> <span class="special">{</span> <span class="special">}</span> <span class="special">};</span> </pre> <p> The <a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get" title="Template Class duration_get"><code class="computeroutput"><span class="identifier">duration_get</span></code></a> facet extracts duration from a character string and stores the resulting value in a class duration d argument. The facet parses the string using a specific format as a guide. If the string does not fit the format, then the facet will indicate an error by setting the err argument to iosbase::failbit. In other words, user confirmation is required for reliable parsing of user-entered durations, but machine-generated formats can be parsed reliably. This allows parsers to be aggressive about interpreting user variations on standard formats. </p> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_get_hpp.duration_get.c"></a><a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get.c" title="Constructor duration_get(size_t)">Constructor <code class="computeroutput"><span class="identifier">duration_get</span><span class="special">(</span><span class="identifier">size_t</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">explicit</span> <span class="identifier">duration_get</span><span class="special">(</span><span class="identifier">size_t</span> <span class="identifier">refs</span><span class="special">);</span> </pre> <p> Constructs a <a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get" title="Template Class duration_get"><code class="computeroutput"><span class="identifier">duration_get</span></code></a> facet. </p> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <span class="bold"><strong>refs:</strong></span> references </li></ul></div> <p> <span class="bold"><strong>Effects:</strong></span> Constructs a <a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get" title="Template Class duration_get"><code class="computeroutput"><span class="identifier">duration_get</span></code></a> facet. If the <code class="computeroutput"><span class="identifier">refs</span></code> argument is <code class="computeroutput"><span class="number">0</span></code> then destruction of the object is delegated to the locale, or locales, containing it. This allows the user to ignore lifetime management issues. On the other had, if <code class="computeroutput"><span class="identifier">refs</span></code> is <code class="computeroutput"><span class="number">1</span></code> then the object must be explicitly deleted; <code class="computeroutput"><span class="identifier">locale</span></code> will not do so. In this case, the object can be maintained across the lifetime of multiple locales. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_get_hpp.duration_get.d"></a><a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get.d" title="Destructor ~duration_get()">Destructor <code class="computeroutput"><span class="special">~</span><span class="identifier">duration_get</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="special">~</span><span class="identifier">duration_get</span><span class="special">();</span> </pre> <p> Destructs a <a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get" title="Template Class duration_get"><code class="computeroutput"><span class="identifier">duration_get</span></code></a> facet. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_get_hpp.duration_get.get"></a><a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get.get" title="Template Member Function get(iter_type,iter_type,std::ios_base&amp;,std::ios_base::iostate&amp;,duration&lt;Rep,Period&gt;&amp;,const char_type*, const char_type*) const">Template Member Function <code class="computeroutput"><span class="identifier">get</span><span class="special">(</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;,</span><span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span><span class="identifier">Period</span><span class="special">&gt;&amp;,</span><span class="keyword">const</span> <span class="identifier">char_type</span><span class="special">*,</span> <span class="keyword">const</span> <span class="identifier">char_type</span><span class="special">*)</span> <span class="keyword">const</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">get</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">end</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="special">&amp;</span><span class="identifier">d</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span><span class="identifier">pattern</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span><span class="identifier">pat_end</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> Extracts a duration from the range <code class="computeroutput"><span class="special">[</span><span class="identifier">s</span><span class="special">,</span><span class="identifier">end</span><span class="special">)</span></code> following the pattern <code class="computeroutput"><span class="special">[</span><span class="identifier">pattern</span><span class="special">,</span><span class="identifier">pat_end</span><span class="special">)</span></code>. </p> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>s:</strong></span> start input stream iterator </li> <li class="listitem"> <span class="bold"><strong>end:</strong></span> end input stream iterator </li> <li class="listitem"> <span class="bold"><strong>ios:</strong></span> a reference to a ios_base </li> <li class="listitem"> <span class="bold"><strong>err:</strong></span> the ios_base state </li> <li class="listitem"> <span class="bold"><strong>d:</strong></span> the duration </li> <li class="listitem"> <span class="bold"><strong>pattern:</strong></span> begin of the formatting pattern </li> <li class="listitem"> <span class="bold"><strong>pat_end:</strong></span> end of the formatting pattern </li> </ul></div> <p> <span class="bold"><strong>Requires:</strong></span> <code class="computeroutput"><span class="special">[</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">end</span><span class="special">)</span> <span class="keyword">and</span> <span class="special">[</span><span class="identifier">pattern</span><span class="special">,</span> <span class="identifier">pat_end</span><span class="special">)</span></code> shall be valid ranges. </p> <p> <span class="bold"><strong>Effects:</strong></span> The function starts by evaluating <code class="computeroutput"><span class="identifier">err</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">goodbit</span></code>. </p> <p> Then it computes an intermediate representation based on <code class="computeroutput"><span class="identifier">Rep</span></code> according to the following rules: </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> If <code class="computeroutput"><span class="identifier">Rep</span></code> is a floating point type, the intermediate representation is <code class="computeroutput"><span class="keyword">long</span> <span class="keyword">double</span></code>. </li> <li class="listitem"> Else if <code class="computeroutput"><span class="identifier">Rep</span></code> is a signed integral type, the intermediate representation is <code class="computeroutput"><span class="keyword">long</span> <span class="keyword">long</span></code>. </li> <li class="listitem"> Else if <code class="computeroutput"><span class="identifier">Rep</span></code> is an unsigned integral type, the intermediate representation is unsigned long long. </li> <li class="listitem"> Else intermediate representation is <code class="computeroutput"><span class="identifier">Rep</span></code>. </li> </ul></div> <p> Next the following local variable <code class="computeroutput"><span class="identifier">r</span></code> of type intermediate representation and <code class="computeroutput"><span class="identifier">rt</span></code> of type <code class="computeroutput"><span class="identifier">rt_ratio</span></code> are default constructed. </p> <p> It then enters a loop, reading zero or more characters from <code class="computeroutput"><span class="identifier">s</span></code> at each iteration. Unless otherwise specified below, the loop terminates when the first of the following conditions holds: </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> The expression <code class="computeroutput"><span class="identifier">pattern</span> <span class="special">==</span> <span class="identifier">pat_end</span></code> evaluates to <code class="computeroutput"><span class="keyword">true</span></code>. </li> <li class="listitem"> The expression <code class="computeroutput"><span class="identifier">err</span> <span class="special">==</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">goodbit</span></code> evaluates to false. </li> <li class="listitem"> The expression <code class="computeroutput"><span class="identifier">s</span> <span class="special">==</span> <span class="identifier">end</span></code> evaluates to <code class="computeroutput"><span class="keyword">true</span></code>, in which case the function evaluates <code class="computeroutput"><span class="identifier">err</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">eofbit</span> <span class="special">|</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">failbit</span></code>. </li> <li class="listitem"> The next element of pattern is equal to <code class="computeroutput"><span class="char">'%'</span></code>, followed by a conversion specifier character, format. If the number of elements in the range <code class="computeroutput"><span class="special">[</span><span class="identifier">pattern</span><span class="special">,</span><span class="identifier">pat_end</span><span class="special">)</span></code> is not sufficient to unambiguously determine whether the conversion specification is complete and valid, the function evaluates <code class="computeroutput"><span class="identifier">err</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">failbit</span></code>. Otherwise, the function evaluates <code class="computeroutput"><span class="identifier">s</span> <span class="special">=</span> <span class="identifier">get_value</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">end</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">r</span><span class="special">)</span></code> when the conversion specification is 'v' and <code class="computeroutput"><span class="identifier">s</span> <span class="special">=</span> <span class="identifier">get_value</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">end</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">rt</span><span class="special">)</span></code> when the conversion specification is 'u'. If <code class="computeroutput"><span class="identifier">err</span> <span class="special">==</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">goodbit</span></code> holds after the evaluation of the expression, the function increments pattern to point just past the end of the conversion specification and continues looping. </li> <li class="listitem"> The expression <code class="computeroutput"><span class="identifier">isspace</span><span class="special">(*</span><span class="identifier">pattern</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">.</span><span class="identifier">getloc</span><span class="special">())</span></code> evaluates to <code class="computeroutput"><span class="keyword">true</span></code>, in which case the function first increments pattern until <code class="computeroutput"><span class="identifier">pattern</span> <span class="special">==</span> <span class="identifier">pat_end</span> <span class="special">||</span> <span class="special">!</span><span class="identifier">isspace</span><span class="special">(*</span><span class="identifier">pattern</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">.</span><span class="identifier">getloc</span><span class="special">())</span></code> evaluates to <code class="computeroutput"><span class="keyword">true</span></code>, then advances <code class="computeroutput"><span class="identifier">s</span></code> until <code class="computeroutput"><span class="identifier">s</span> <span class="special">==</span> <span class="identifier">end</span> <span class="special">||</span> <span class="special">!</span><span class="identifier">isspace</span><span class="special">(*</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">.</span><span class="identifier">getloc</span><span class="special">())</span></code> is <code class="computeroutput"><span class="keyword">true</span></code>, and finally resumes looping. </li> <li class="listitem"> The next character read from <code class="computeroutput"><span class="identifier">s</span></code> matches the element pointed to by pattern in a case-insensitive comparison, in which case the function evaluates <code class="computeroutput"><span class="special">++</span><span class="identifier">pattern</span><span class="special">,</span> <span class="special">++</span><span class="identifier">s</span></code> and continues looping. Otherwise, the function evaluates <code class="computeroutput"><span class="identifier">err</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">failbit</span></code>. </li> </ul></div> <p> If a duration representation value and a unit specifier have successfully been parsed, compute <code class="computeroutput"><span class="special">(</span><span class="identifier">rt</span><span class="special">.</span><span class="identifier">num</span><span class="special">/</span><span class="identifier">rt</span><span class="special">.</span><span class="identifier">den</span><span class="special">)/(</span><span class="identifier">Period</span><span class="special">::</span><span class="identifier">num</span><span class="special">/</span><span class="identifier">Period</span><span class="special">::</span><span class="identifier">den</span><span class="special">)</span></code> reduced to lowest terms. If this ratio can not be stored without overflow, evaluates <code class="computeroutput"><span class="identifier">err</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">failbit</span></code>. Otherwise store the result of this division in <code class="computeroutput"><span class="identifier">num</span></code> and <code class="computeroutput"><span class="identifier">den</span></code>. </p> <p> If the division did not result in overflow, then compute <code class="computeroutput"><span class="identifier">r</span> <span class="special">*</span> <span class="identifier">num</span> <span class="special">/</span> <span class="identifier">den</span></code> in such a way as to avoid intermediate overflow. If <code class="computeroutput"><span class="identifier">r</span></code> has integral type and this computation would not be exact, evaluates <code class="computeroutput"><span class="identifier">err</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">failbit</span></code>. If the result of the computation would overflow <code class="computeroutput"><span class="identifier">Rep</span></code>, evaluates <code class="computeroutput"><span class="identifier">err</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">failbit</span></code>. Otherwise the result of <code class="computeroutput"><span class="identifier">r</span> <span class="special">*</span> <span class="identifier">num</span> <span class="special">/</span> <span class="identifier">den</span></code> is used to construct a <code class="computeroutput"><span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span></code> which is assigned to <code class="computeroutput"><span class="identifier">d</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">s</span></code>, an iterator pointing just beyond the last character that can be determined to be part of a valid duration. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_get_hpp.duration_get.get2"></a><a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get.get2" title="Template Member Function get(iter_type,iter_type,std::ios_base&amp;,std::ios_base::iostate&amp;,duration&lt;Rep,Period&gt;&amp;) const">Template Member Function <code class="computeroutput"><span class="identifier">get</span><span class="special">(</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;,</span><span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span><span class="identifier">Period</span><span class="special">&gt;&amp;)</span> <span class="keyword">const</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">get</span><span class="special">(</span> <span class="identifier">iter_type</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">end</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span> <span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> Extracts a duration from the range <code class="computeroutput"><span class="special">[</span><span class="identifier">s</span><span class="special">,</span><span class="identifier">end</span><span class="special">)</span></code> following the default pattern. </p> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>s:</strong></span> start input stream iterator </li> <li class="listitem"> <span class="bold"><strong>end:</strong></span> end input stream iterator </li> <li class="listitem"> <span class="bold"><strong>ios:</strong></span> a reference to a ios_base </li> <li class="listitem"> <span class="bold"><strong>err:</strong></span> the ios_base state </li> <li class="listitem"> <span class="bold"><strong>d:</strong></span> the duration </li> </ul></div> <p> <span class="bold"><strong>Effects:</strong></span> Stores the duration pattern from the __duration_unit facet associated to 'ios<code class="computeroutput"> <span class="identifier">in</span> <span class="identifier">let</span> <span class="identifier">say</span> </code>str`. Last as if </p> <pre class="programlisting"><span class="keyword">return</span> <span class="identifier">get</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">end</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">d</span><span class="special">,</span> <span class="identifier">str</span><span class="special">.</span><span class="identifier">data</span><span class="special">(),</span> <span class="identifier">str</span><span class="special">.</span><span class="identifier">data</span><span class="special">()</span> <span class="special">+</span> <span class="identifier">str</span><span class="special">.</span><span class="identifier">size</span><span class="special">());</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">s</span></code>, an iterator pointing just beyond the last character that can be determined to be part of a valid duration. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_get_hpp.duration_get.get_value"></a><a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get.get_value" title="Template Member Function get_value(iter_type,iter_type,std::ios_base&amp;,std::ios_base::iostate&amp;,Rep&amp;) const">Template Member Function <code class="computeroutput"><span class="identifier">get_value</span><span class="special">(</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;,</span><span class="identifier">Rep</span><span class="special">&amp;)</span> <span class="keyword">const</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">get_value</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">end</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">Rep</span><span class="special">&amp;</span> <span class="identifier">r</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> Extracts a duration representation from the range <code class="computeroutput"><span class="special">[</span><span class="identifier">s</span><span class="special">,</span><span class="identifier">end</span><span class="special">)</span></code>. </p> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>s:</strong></span> start input stream iterator </li> <li class="listitem"> <span class="bold"><strong>end:</strong></span> end input stream iterator </li> <li class="listitem"> <span class="bold"><strong>ios:</strong></span> a reference to a ios_base </li> <li class="listitem"> <span class="bold"><strong>err:</strong></span> the ios_base state </li> <li class="listitem"> <span class="bold"><strong>r:</strong></span> a reference to the duration representation </li> </ul></div> <p> <span class="bold"><strong>Effects:</strong></span> As if </p> <pre class="programlisting"><span class="keyword">return</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">use_facet</span><span class="special">&lt;</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">num_get</span><span class="special">&lt;</span><span class="identifier">char_type</span><span class="special">,</span> <span class="identifier">iter_type</span><span class="special">&gt;&gt;(</span><span class="identifier">ios</span><span class="special">.</span><span class="identifier">getloc</span><span class="special">()).</span><span class="identifier">get</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">end</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">r</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">s</span></code>, an iterator pointing just beyond the last character that can be determined to be part of a valid <code class="computeroutput"><span class="identifier">Rep</span></code> value. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_get_hpp.duration_get.get_unit"></a><a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get.get_unit" title="Member Function get_unit(iter_type,iter_type,std::ios_base&amp;,std::ios_base::iostate&amp;,rt_ratio&amp;) const">Member Function <code class="computeroutput"><span class="identifier">get_unit</span><span class="special">(</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;,</span><span class="identifier">rt_ratio</span><span class="special">&amp;)</span> <span class="keyword">const</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="identifier">iter_type</span> <span class="identifier">get_unit</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">detail</span><span class="special">::</span><span class="identifier">rt_ratio</span> <span class="special">&amp;</span><span class="identifier">rt</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> Extracts a duration unit from the range <code class="computeroutput"><span class="special">[</span><span class="identifier">s</span><span class="special">,</span><span class="identifier">end</span><span class="special">)</span></code>. </p> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>s:</strong></span> start input stream iterator </li> <li class="listitem"> <span class="bold"><strong>end:</strong></span> end input stream iterator </li> <li class="listitem"> <span class="bold"><strong>ios:</strong></span> a reference to a ios_base </li> <li class="listitem"> <span class="bold"><strong>err:</strong></span> the ios_base state </li> <li class="listitem"> <span class="bold"><strong>rt:</strong></span> a reference to the duration run-time ratio. </li> </ul></div> <p> <span class="bold"><strong>Effects:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> If the first character is <code class="computeroutput"><span class="char">'['</span></code>, an attempt is made to consume a pattern of the form <code class="computeroutput"><span class="string">"[N/D]"</span></code> where <code class="computeroutput"><span class="identifier">N</span></code> and <code class="computeroutput"><span class="identifier">D</span></code> have type <code class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">long</span> <span class="keyword">long</span></code>. <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: circle; "> <li class="listitem"> If successful, rt records the values of <code class="computeroutput"><span class="identifier">N</span></code> and <code class="computeroutput"><span class="identifier">D</span></code>, otherwise evaluates <code class="computeroutput"><span class="identifier">err</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">failbit</span></code> and return <code class="computeroutput"><span class="identifier">i</span></code>. </li> <li class="listitem"> Return the parse the longest string possible matching one of the durations units that can follow the pattern <code class="computeroutput"><span class="string">"[N/D]"</span></code>, as if </li> </ul></div> </li></ul></div> <pre class="programlisting"><span class="keyword">return</span> <span class="identifier">do_get_n_d_prefix_unit</span><span class="special">(</span><span class="identifier">facet</span><span class="special">,</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">err</span><span class="special">);</span> </pre> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> Otherwise the next character is not <code class="computeroutput"><span class="char">'['</span></code>. Return the parse the longest string possible matching one of the durations units, as if </li></ul></div> <pre class="programlisting"><span class="keyword">return</span> <span class="identifier">do_get_prefix_unit</span><span class="special">(</span><span class="identifier">facet</span><span class="special">,</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">rt</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">i</span></code>, an iterator pointing just beyond the last character that can be determined to be part of a valid duration unit. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_get_hpp.duration_get.do_get_n_d_prefix_unit"></a><a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get.do_get_n_d_prefix_unit" title="Protected Member Function do_get_n_d_prefix_unit(duration_units&lt;CharT&gt; const&amp;,iter_type,iter_type,std::ios_base&amp;,std::ios_base::iostate&amp;) const">Protected Member Function <code class="computeroutput"><span class="identifier">do_get_n_d_prefix_unit</span><span class="special">(</span><span class="identifier">duration_units</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;,</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;)</span> <span class="keyword">const</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="identifier">iter_type</span> <span class="identifier">do_get_n_d_prefix_unit</span><span class="special">(</span> <span class="identifier">duration_units</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="identifier">facet</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;</span> <span class="identifier">err</span> <span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> Extracts the run-time ratio associated to the duration when it is given in [N/D] form. </p> <p> This is an extension point of this facet so that we can take in account other periods that can have a useful translation in other contexts, as e.g. days and weeks. </p> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>s:</strong></span> start input stream iterator </li> <li class="listitem"> <span class="bold"><strong>end:</strong></span> end input stream iterator </li> <li class="listitem"> <span class="bold"><strong>ios:</strong></span> a reference to a ios_base </li> <li class="listitem"> <span class="bold"><strong>err:</strong></span> the ios_base state </li> <li class="listitem"> <span class="bold"><strong>rt:</strong></span> a reference to the duration run-time ratio. </li> </ul></div> <p> <span class="bold"><strong>Effects:</strong></span> Scan <code class="computeroutput"><span class="identifier">s</span></code> for the longest of all the plural forms associated with the duration units. If successful, sets the matched ratio in <code class="computeroutput"><span class="identifier">rt</span></code>. Otherwise evaluates <code class="computeroutput"><span class="identifier">err</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">failbit</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">s</span></code>, an iterator pointing just beyond the last character that can be determined to be part of a valid name. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_get_hpp.duration_get.do_get_prefix_unit"></a><a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get.do_get_prefix_unit" title="Protected Member Function do_get_prefix_unit(duration_units&lt;CharT&gt; const&amp;,iter_type,iter_type,std::ios_base&amp;,std::ios_base::iostate&amp;,detail::rt_ratio&amp;) const">Protected Member Function <code class="computeroutput"><span class="identifier">do_get_prefix_unit</span><span class="special">(</span><span class="identifier">duration_units</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;,</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;,</span><span class="identifier">detail</span><span class="special">::</span><span class="identifier">rt_ratio</span><span class="special">&amp;)</span> <span class="keyword">const</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="identifier">iter_type</span> <span class="identifier">do_get_prefix_unit</span><span class="special">(</span> <span class="identifier">duration_units</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="identifier">facet</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">detail</span><span class="special">::</span><span class="identifier">rt_ratio</span> <span class="special">&amp;</span><span class="identifier">rt</span> <span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> Extracts the run-time ratio associated to the duration when it is given in prefix form. </p> <p> This is an extension point of this facet so that we can take in account other periods that can have a useful translation in other contexts, as e.g. days and weeks. </p> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>s:</strong></span> start input stream iterator </li> <li class="listitem"> <span class="bold"><strong>end:</strong></span> end input stream iterator </li> <li class="listitem"> <span class="bold"><strong>ios:</strong></span> a reference to a ios_base </li> <li class="listitem"> <span class="bold"><strong>err:</strong></span> the ios_base state </li> <li class="listitem"> <span class="bold"><strong>rt:</strong></span> a reference to the duration run-time ratio. </li> </ul></div> <p> <span class="bold"><strong>Effects:</strong></span> Scan <code class="computeroutput"><span class="identifier">s</span></code> for the longest of all the plural forms associated with the duration units. If successful, sets the matched ratio in <code class="computeroutput"><span class="identifier">rt</span></code>. Otherwise evaluates <code class="computeroutput"><span class="identifier">err</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">failbit</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">s</span></code>, an iterator pointing just beyond the last character that can be determined to be part of a valid name. </p> </div> </div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.io.duration_put_hpp"></a><a class="link" href="reference.html#chrono.reference.io.duration_put_hpp" title="Header &lt;boost/chrono/io/duration_put.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">duration_put</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"><dt><span class="section"><a href="reference.html#chrono.reference.io.duration_put_hpp.duration_put">Template Class <code class="computeroutput"><span class="identifier">duration_put</span></code></a></span></dt></dl></div> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">OutputIterator</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ostreambuf_iterator</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put" title="Template Class duration_put"><code class="computeroutput"><span class="identifier">duration_put</span></code></a><span class="special">;</span> <span class="special">}</span> <span class="special">}</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io.duration_put_hpp.duration_put"></a><a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put" title="Template Class duration_put">Template Class <code class="computeroutput"><span class="identifier">duration_put</span></code></a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">OutputIterator</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ostreambuf_iterator</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="keyword">class</span> <span class="identifier">duration_put</span><span class="special">:</span> <span class="keyword">public</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span><span class="special">::</span><span class="identifier">facet</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">typedef</span> <span class="identifier">CharT</span> <span class="identifier">char_type</span><span class="special">;</span> <span class="comment">// Type of character the facet is instantiated on.</span> <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">string_type</span><span class="special">;</span> <span class="comment">// Type of character string passed to member functions.</span> <span class="keyword">typedef</span> <span class="identifier">OutputIterator</span> <span class="identifier">iter_type</span><span class="special">;</span> <span class="comment">// Type of iterator used to write in the character buffer.</span> <span class="keyword">explicit</span> <a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put.c" title="Constructor duration_put(size_t)"><code class="computeroutput"><span class="identifier">duration_put</span></code></a><span class="special">(</span><span class="identifier">size_t</span> <span class="identifier">refs</span> <span class="special">=</span> <span class="number">0</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put.put" title="Member Function put(iter_type,std::ios_base&amp;,char_type,duration&lt;Rep,Period&gt; const&amp;, const CharT*,const CharT*)"><code class="computeroutput"><span class="identifier">put</span></code></a><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">char_type</span> <span class="identifier">fill</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span><span class="special">*</span> <span class="identifier">pattern</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span><span class="special">*</span> <span class="identifier">pat_end</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put.put2" title="Member Function put(iter_type,std::ios_base&amp;,char_type fill, duration&lt;Rep, Period&gt; const&amp;)"><code class="computeroutput"><span class="identifier">put</span></code></a><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">char_type</span> <span class="identifier">fill</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put.put_value" title="Member Function put_value(iter_type, std::ios_base&amp;, char_type, duration&lt;Rep,Period&gt; const&amp;)"><code class="computeroutput"><span class="identifier">put_value</span></code></a><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">char_type</span> <span class="identifier">fill</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put.put_unit" title="Member Function put_unit(iter_type,std::ios_base&amp;,char_type,duration&lt;Rep, Period&gt; const&amp;)"><code class="computeroutput"><span class="identifier">put_unit</span></code></a><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">char_type</span> <span class="identifier">fill</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span><span class="special">::</span><span class="identifier">id</span> <span class="identifier">id</span><span class="special">;</span> <span class="comment">// Unique identifier for this type of facet.</span> <a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put.d" title="Destructor ~duration_put()"><code class="computeroutput"><span class="special">~</span><span class="identifier">duration_put</span></code></a><span class="special">();</span> <span class="special">};</span> </pre> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_put_hpp.duration_put.c"></a><a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put.c" title="Constructor duration_put(size_t)">Constructor <code class="computeroutput"><span class="identifier">duration_put</span><span class="special">(</span><span class="identifier">size_t</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">explicit</span> <span class="identifier">duration_put</span><span class="special">(</span><span class="identifier">size_t</span> <span class="identifier">refs</span><span class="special">);</span> </pre> <p> Constructs a <a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put" title="Template Class duration_put"><code class="computeroutput"><span class="identifier">duration_put</span></code></a> facet. </p> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <span class="bold"><strong>refs:</strong></span> references </li></ul></div> <p> <span class="bold"><strong>Effects:</strong></span> Constructs a <a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put" title="Template Class duration_put"><code class="computeroutput"><span class="identifier">duration_put</span></code></a> facet. If the <code class="computeroutput"><span class="identifier">refs</span></code> argument is <code class="computeroutput"><span class="number">0</span></code> then destruction of the object is delegated to the locale, or locales, containing it. This allows the user to ignore lifetime management issues. On the other had, if <code class="computeroutput"><span class="identifier">refs</span></code> is <code class="computeroutput"><span class="number">1</span></code> then the object must be explicitly deleted; <code class="computeroutput"><span class="identifier">locale</span></code> will not do so. In this case, the object can be maintained across the lifetime of multiple locales. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_put_hpp.duration_put.d"></a><a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put.d" title="Destructor ~duration_put()">Destructor <code class="computeroutput"><span class="special">~</span><span class="identifier">duration_put</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="special">~</span><span class="identifier">duration_put</span><span class="special">();</span> </pre> <p> Destructs a <a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put" title="Template Class duration_put"><code class="computeroutput"><span class="identifier">duration_put</span></code></a> facet. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_put_hpp.duration_put.put"></a><a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put.put" title="Member Function put(iter_type,std::ios_base&amp;,char_type,duration&lt;Rep,Period&gt; const&amp;, const CharT*,const CharT*)">Member Function <code class="computeroutput"><span class="identifier">put</span><span class="special">(</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;,</span><span class="identifier">char_type</span><span class="special">,</span><span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span><span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;,</span> <span class="keyword">const</span> <span class="identifier">CharT</span><span class="special">*,</span><span class="keyword">const</span> <span class="identifier">CharT</span><span class="special">*)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">put</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">char_type</span> <span class="identifier">fill</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span><span class="special">*</span> <span class="identifier">pattern</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span><span class="special">*</span> <span class="identifier">pat_end</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>s:</strong></span> an output stream iterator </li> <li class="listitem"> <span class="bold"><strong>ios:</strong></span> a reference to a ios_base </li> <li class="listitem"> <span class="bold"><strong>d:</strong></span> the duration </li> <li class="listitem"> <span class="bold"><strong>pattern:</strong></span> begin of the formatting pattern </li> <li class="listitem"> <span class="bold"><strong>pat_end:</strong></span> end of the formatting pattern </li> </ul></div> <p> <span class="bold"><strong>Effects:</strong></span> Steps through the sequence from <code class="computeroutput"><span class="identifier">pattern</span></code> to <code class="computeroutput"><span class="identifier">pat_end</span></code>, identifying characters that are part of a pattern sequence. Each character that is not part of a pattern sequence is written to <code class="computeroutput"><span class="identifier">s</span></code> immediately, and each pattern sequence, as it is identified, results in a call to <code class="computeroutput"><span class="identifier">put_value</span></code> or <code class="computeroutput"><span class="identifier">put_unit</span></code>; thus, pattern elements and other characters are interleaved in the output in the order in which they appear in the pattern. Pattern sequences are identified by converting each character <code class="computeroutput"><span class="identifier">c</span></code> to a <code class="computeroutput"><span class="keyword">char</span></code> value as if by <code class="computeroutput"><span class="identifier">ct</span><span class="special">.</span><span class="identifier">narrow</span><span class="special">(</span><span class="identifier">c</span><span class="special">,</span><span class="number">0</span><span class="special">)</span></code>, where <code class="computeroutput"><span class="identifier">ct</span></code> is a reference to <code class="computeroutput"><span class="identifier">ctype</span><span class="special">&lt;</span><span class="identifier">charT</span><span class="special">&gt;</span></code> obtained from <code class="computeroutput"><span class="identifier">ios</span><span class="special">.</span><span class="identifier">getloc</span><span class="special">()</span></code>. The first character of each sequence is equal to <code class="computeroutput"><span class="char">'%'</span></code>, followed by a pattern specifier character specifier, which can be <code class="computeroutput"><span class="char">'v'</span></code> for the duration value or <code class="computeroutput"><span class="char">'u'</span></code> for the duration unit. . For each valid pattern sequence identified, calls <code class="computeroutput"><span class="identifier">put_value</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">d</span><span class="special">)</span></code> or <code class="computeroutput"><span class="identifier">put_unit</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">d</span><span class="special">)</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> An iterator pointing immediately after the last character produced. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_put_hpp.duration_put.put2"></a><a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put.put2" title="Member Function put(iter_type,std::ios_base&amp;,char_type fill, duration&lt;Rep, Period&gt; const&amp;)">Member Function <code class="computeroutput"><span class="identifier">put</span><span class="special">(</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;,</span><span class="identifier">char_type</span> <span class="identifier">fill</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">put</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">char_type</span> <span class="identifier">fill</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>s:</strong></span> an output stream iterator </li> <li class="listitem"> <span class="bold"><strong>ios:</strong></span> a reference to a ios_base </li> <li class="listitem"> <span class="bold"><strong>d:</strong></span> the duration </li> </ul></div> <p> Retrieves Stores the duration pattern from the __duration_unit facet in let say <code class="computeroutput"><span class="identifier">str</span></code>. Last as if </p> <pre class="programlisting"><span class="keyword">return</span> <span class="identifier">put</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">d</span><span class="special">,</span> <span class="identifier">str</span><span class="special">.</span><span class="identifier">data</span><span class="special">(),</span> <span class="identifier">str</span><span class="special">.</span><span class="identifier">data</span><span class="special">()</span> <span class="special">+</span> <span class="identifier">str</span><span class="special">.</span><span class="identifier">size</span><span class="special">());</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> An iterator pointing immediately after the last character produced. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_put_hpp.duration_put.put_value"></a><a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put.put_value" title="Member Function put_value(iter_type, std::ios_base&amp;, char_type, duration&lt;Rep,Period&gt; const&amp;)">Member Function <code class="computeroutput"><span class="identifier">put_value</span><span class="special">(</span><span class="identifier">iter_type</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;,</span> <span class="identifier">char_type</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span><span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">put_value</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">char_type</span> <span class="identifier">fill</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>s:</strong></span> an output stream iterator </li> <li class="listitem"> <span class="bold"><strong>ios:</strong></span> a reference to a ios_base </li> <li class="listitem"> <span class="bold"><strong>d:</strong></span> the duration </li> </ul></div> <p> <span class="bold"><strong>Effects:</strong></span> As if std::use_facet&lt;std::num_put&lt;CharT, iter_type&gt; &gt;(ios.getloc()).put(s, ios, ' ', static_cast&lt;long int&gt; (d.count())). </p> <p> <span class="bold"><strong>Returns:</strong></span> An iterator pointing immediately after the last character produced. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_put_hpp.duration_put.put_unit"></a><a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put.put_unit" title="Member Function put_unit(iter_type,std::ios_base&amp;,char_type,duration&lt;Rep, Period&gt; const&amp;)">Member Function <code class="computeroutput"><span class="identifier">put_unit</span><span class="special">(</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;,</span><span class="identifier">char_type</span><span class="special">,</span><span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">put_unit</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">char_type</span> <span class="identifier">fill</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>s:</strong></span> an output stream iterator </li> <li class="listitem"> <span class="bold"><strong>ios:</strong></span> a reference to a ios_base </li> <li class="listitem"> <span class="bold"><strong>fill:</strong></span> the fill character </li> <li class="listitem"> <span class="bold"><strong>d:</strong></span> the duration </li> </ul></div> <p> <span class="bold"><strong>Effects:</strong></span> Let <code class="computeroutput"><span class="identifier">facet</span></code> be the <code class="computeroutput"><span class="identifier">duration_units</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span></code> facet associated to <code class="computeroutput"><span class="identifier">ios</span></code>. If the associated unit is named, as if </p> <pre class="programlisting"><span class="identifier">string_type</span> <span class="identifier">str</span> <span class="special">=</span> <span class="identifier">facet</span><span class="special">.</span><span class="identifier">get_unit</span><span class="special">(</span><span class="identifier">get_duration_style</span><span class="special">(</span><span class="identifier">ios</span><span class="special">),</span> <span class="identifier">d</span><span class="special">);</span> <span class="identifier">s</span><span class="special">=</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">copy</span><span class="special">(</span><span class="identifier">str</span><span class="special">.</span><span class="identifier">begin</span><span class="special">(),</span> <span class="identifier">str</span><span class="special">.</span><span class="identifier">end</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">);</span> </pre> <p> Otherwise, format the unit as <code class="computeroutput"><span class="string">"[Period::num/Period::den]"</span></code> followed by the unit associated to [N/D] obtained using <code class="computeroutput"><span class="identifier">facet</span><span class="special">.</span><span class="identifier">get_n_d_unit</span><span class="special">(</span><span class="identifier">get_duration_style</span><span class="special">(</span><span class="identifier">ios</span><span class="special">),</span> <span class="identifier">d</span><span class="special">)</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> s, iterator pointing immediately after the last character produced. </p> </div> </div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.io.duration_units_hpp"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp" title="Header &lt;boost/chrono/io/duration_units.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">duration_units</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"> <dt><span class="section"><a href="reference.html#chrono.reference.io.duration_units_hpp.rt_ratio">Class <code class="computeroutput"><span class="identifier">rt_ratio</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io.duration_units_hpp.duration_units">Template Class <code class="computeroutput"><span class="identifier">duration_units</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default">Template Class <code class="computeroutput"><span class="identifier">duration_units_default</span></code></a></span></dt> </dl></div> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="keyword">class</span> <span class="identifier">rt_ratio</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span> <span class="special">=</span> <span class="keyword">char</span><span class="special">&gt;</span> <span class="keyword">class</span> <span class="identifier">duration_units</span><span class="special">;</span> <span class="special">}</span> <span class="special">}</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io.duration_units_hpp.rt_ratio"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.rt_ratio" title="Class rt_ratio">Class <code class="computeroutput"><span class="identifier">rt_ratio</span></code></a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">class</span> <span class="identifier">rt_ratio</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">rt_ratio</span><span class="special">(</span><span class="identifier">Period</span> <span class="keyword">const</span><span class="special">&amp;)</span> <span class="special">:</span> <span class="identifier">num</span><span class="special">(</span><span class="identifier">Period</span><span class="special">::</span><span class="identifier">type</span><span class="special">::</span><span class="identifier">num</span><span class="special">),</span> <span class="identifier">den</span><span class="special">(</span><span class="identifier">Period</span><span class="special">::</span><span class="identifier">type</span><span class="special">::</span><span class="identifier">den</span><span class="special">)</span> <span class="special">{</span> <span class="special">}</span> <span class="identifier">rt_ratio</span><span class="special">(</span><span class="identifier">intmax_t</span> <span class="identifier">n</span> <span class="special">=</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">intmax_t</span> <span class="identifier">d</span> <span class="special">=</span> <span class="number">1</span><span class="special">)</span> <span class="special">:</span> <span class="identifier">num</span><span class="special">(</span><span class="identifier">n</span><span class="special">),</span> <span class="identifier">den</span><span class="special">(</span><span class="identifier">d</span><span class="special">)</span> <span class="special">{</span> <span class="special">}</span> <span class="identifier">intmax_t</span> <span class="identifier">num</span><span class="special">;</span> <span class="identifier">intmax_t</span> <span class="identifier">den</span><span class="special">;</span> <span class="special">};</span> </pre> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units" title="Template Class duration_units">Template Class <code class="computeroutput"><span class="identifier">duration_units</span></code></a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span> <span class="special">=</span> <span class="keyword">char</span><span class="special">&gt;</span> <span class="keyword">class</span> <span class="identifier">duration_units</span><span class="special">:</span> <span class="keyword">public</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span><span class="special">::</span><span class="identifier">facet</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">typedef</span> <span class="identifier">CharT</span> <span class="identifier">char_type</span><span class="special">;</span> <span class="comment">// Type of character the facet is instantiated on.</span> <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">string_type</span><span class="special">;</span> <span class="comment">// Type of character string passed to member functions.</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span><span class="special">::</span><span class="identifier">id</span> <span class="identifier">id</span><span class="special">;</span> <span class="comment">// Unique identifier for this type of facet.</span> <span class="keyword">explicit</span> <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.c" title="Constructor duration_units()"><code class="computeroutput"><span class="identifier">duration_units</span></code></a><span class="special">(</span><span class="identifier">size_t</span> <span class="identifier">refs</span> <span class="special">=</span> <span class="number">0</span><span class="special">);</span> <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.get_n_d_valid_units_start" title="Member Function get_n_d_valid_units_start()"><code class="computeroutput"><span class="identifier">get_n_d_valid_units_start</span></code></a><span class="special">()</span> <span class="keyword">const</span> <span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.get_n_d_valid_units_end" title="Member Function get_n_d_valid_units_end()"><code class="computeroutput"><span class="identifier">get_n_d_valid_units_end</span></code></a><span class="special">()</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.get_valid_units_start" title="Member Function get_valid_units_start()"><code class="computeroutput"><span class="identifier">get_valid_units_start</span></code></a><span class="special">()</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.get_valid_units_end" title="Member Function get_valid_units_end()"><code class="computeroutput"><span class="identifier">get_valid_units_end</span></code></a><span class="special">()</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="keyword">bool</span> <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.match_n_d_valid_unit" title="Member Function match_n_d_valid_unit(const string_type*)"><code class="computeroutput"><span class="identifier">match_n_d_valid_unit</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">k</span><span class="special">)</span> <span class="keyword">const</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="keyword">bool</span> <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.match_valid_unit" title="Member Function match_valid_unit(const string_type*,rt_ratio&amp;)"><code class="computeroutput"><span class="identifier">match_valid_unit</span></code></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">k</span><span class="special">,</span> <span class="identifier">rt_ratio</span><span class="special">&amp;</span> <span class="identifier">rt</span><span class="special">)</span> <span class="keyword">const</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.get_pattern" title="Member Function get_pattern()"><code class="computeroutput"><span class="identifier">get_pattern</span></code></a><span class="special">()</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">string_type</span> <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.get_unit" title="Template Member Function get_unit(duration_style,duration&lt;Rep,Period&gt; const&amp;)"><code class="computeroutput"><span class="identifier">get_unit</span></code></a><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">string_type</span> <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.get_n_d_unit" title="Template Member Function get_n_d_unit(duration_style,duration&lt;Rep,Period&gt; const&amp;)"><code class="computeroutput"><span class="identifier">get_n_d_unit</span></code></a><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">bool</span> <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.is_named_unit" title="Template Member Function is_named_unit()"><code class="computeroutput"><span class="identifier">is_named_unit</span></code></a><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">protected</span><span class="special">:</span> <span class="keyword">virtual</span> <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.d" title="Destructor ~duration_units()"><code class="computeroutput"><span class="special">~</span><span class="identifier">duration_units</span></code></a><span class="special">();</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.do_get_n_d_unit" title="Protected Member Function do_get_n_d_unit(duration_style,rt_ratio,intmax_t)"><code class="computeroutput"><span class="identifier">do_get_n_d_unit</span></code></a><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">rt_ratio</span> <span class="identifier">rt</span><span class="special">,</span> <span class="identifier">intmax_t</span> <span class="identifier">v</span><span class="special">)</span> <span class="keyword">const</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.do_get_unit" title="Protected Member Function do_get_unit(duration_style,rt_ratio,intmax_t)"><code class="computeroutput"><span class="identifier">do_get_unit</span></code></a><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span><span class="identifier">rt_ratio</span> <span class="identifier">rt</span><span class="special">,</span> <span class="identifier">intmax_t</span> <span class="identifier">v</span><span class="special">)</span> <span class="keyword">const</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="keyword">bool</span> <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.do_is_named_unit" title="Protected Member Function do_is_named_unit(rt_ratio)"><code class="computeroutput"><span class="identifier">do_is_named_unit</span></code></a><span class="special">(</span><span class="identifier">rt_ratio</span> <span class="identifier">rt</span><span class="special">)</span> <span class="keyword">const</span> <span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="special">};</span> </pre> <p> <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units" title="Template Class duration_units"><code class="computeroutput"><span class="identifier">duration_units</span></code></a> facet gives useful information about the duration units, as the number of plural forms, the plural form associated to a duration, the text associated to a plural form and a duration's period, </p> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units.c"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.c" title="Constructor duration_units()">Constructor <code class="computeroutput"><span class="identifier">duration_units</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">explicit</span> <span class="identifier">duration_units</span><span class="special">(</span><span class="identifier">size_t</span> <span class="identifier">refs</span> <span class="special">=</span> <span class="number">0</span><span class="special">);</span> </pre> <p> Construct a <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units" title="Template Class duration_units"><code class="computeroutput"><span class="identifier">duration_units</span></code></a> facet. </p> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <span class="bold"><strong>refs:</strong></span> references </li></ul></div> <p> <span class="bold"><strong>Effects:</strong></span> Construct a <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units" title="Template Class duration_units"><code class="computeroutput"><span class="identifier">duration_units</span></code></a> facet. If the <code class="computeroutput"><span class="identifier">refs</span></code> argument is <code class="computeroutput"><span class="number">0</span></code> then destruction of the object is delegated to the locale, or locales, containing it. This allows the user to ignore lifetime management issues. On the other had, if <code class="computeroutput"><span class="identifier">refs</span></code> is <code class="computeroutput"><span class="number">1</span></code> then the object must be explicitly deleted; the locale will not do so. In this case, the object can be maintained across the lifetime of multiple locales. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units.d"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.d" title="Destructor ~duration_units()">Destructor <code class="computeroutput"><span class="special">~</span><span class="identifier">duration_units</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="special">~</span><span class="identifier">duration_units</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Destroys the facet. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units.get_n_d_valid_units_start"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.get_n_d_valid_units_start" title="Member Function get_n_d_valid_units_start()">Member Function <code class="computeroutput"><span class="identifier">get_n_d_valid_units_start</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">get_n_d_valid_units_start</span><span class="special">()</span> <span class="keyword">const</span> <span class="special">=</span><span class="number">0</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> pointer to the start of valid [N/D] units. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units.get_n_d_valid_units_end"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.get_n_d_valid_units_end" title="Member Function get_n_d_valid_units_end()">Member Function <code class="computeroutput"><span class="identifier">get_n_d_valid_units_end</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">get_n_d_valid_units_end</span><span class="special">()</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> pointer to the end of valid [N/D] units. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units.get_valid_units_start"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.get_valid_units_start" title="Member Function get_valid_units_start()">Member Function <code class="computeroutput"><span class="identifier">get_valid_units_start</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">get_valid_units_start</span><span class="special">()</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> pointer to the start of valid units, symbol or prefix with its different plural forms. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units.get_valid_units_end"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.get_valid_units_end" title="Member Function get_valid_units_end()">Member Function <code class="computeroutput"><span class="identifier">get_valid_units_end</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">get_valid_units_end</span><span class="special">()</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> pointer to the end of valid units. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units.match_n_d_valid_unit"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.match_n_d_valid_unit" title="Member Function match_n_d_valid_unit(const string_type*)">Member Function <code class="computeroutput"><span class="identifier">match_n_d_valid_unit</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="keyword">bool</span> <span class="identifier">match_n_d_valid_unit</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">k</span><span class="special">)</span> <span class="keyword">const</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <span class="bold"><strong>k:</strong></span> the found pointer to the [N/D] unit. </li></ul></div> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="keyword">true</span></code> if <code class="computeroutput"><span class="identifier">k</span></code> matches a valid unit. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units.match_valid_unit"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.match_valid_unit" title="Member Function match_valid_unit(const string_type*,rt_ratio&amp;)">Member Function <code class="computeroutput"><span class="identifier">match_valid_unit</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*,</span><span class="identifier">rt_ratio</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="keyword">bool</span> <span class="identifier">match_valid_unit</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">k</span><span class="special">,</span> <span class="identifier">rt_ratio</span><span class="special">&amp;</span> <span class="identifier">rt</span><span class="special">)</span> <span class="keyword">const</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <span class="bold"><strong>k:</strong></span> the found pointer to the unit. </li></ul></div> <p> <span class="bold"><strong>Effects:</strong></span> <code class="computeroutput"><span class="identifier">rt</span></code> is set to the valid Period when the <code class="computeroutput"><span class="identifier">k</span></code> matches a valid unit. <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="keyword">true</span></code> if <code class="computeroutput"><span class="identifier">k</span></code> matches a valid unit. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units.get_pattern"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.get_pattern" title="Member Function get_pattern()">Member Function <code class="computeroutput"><span class="identifier">get_pattern</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">get_pattern</span><span class="special">()</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> the pattern to be used by default. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units.get_unit"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.get_unit" title="Template Member Function get_unit(duration_style,duration&lt;Rep,Period&gt; const&amp;)">Template Member Function <code class="computeroutput"><span class="identifier">get_unit</span><span class="special">(</span><span class="identifier">duration_style</span><span class="special">,</span><span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span><span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">string_type</span> <span class="identifier">get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">get_unit</span><span class="special">(</span><span class="identifier">style</span><span class="special">,</span> <span class="identifier">d</span><span class="special">.</span><span class="identifier">count</span><span class="special">(),</span> <span class="identifier">rt_ratio</span><span class="special">(</span><span class="identifier">Period</span><span class="special">()))</span></code>, the unit associated to this duration. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units.get_n_d_unit"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.get_n_d_unit" title="Template Member Function get_n_d_unit(duration_style,duration&lt;Rep,Period&gt; const&amp;)">Template Member Function <code class="computeroutput"><span class="identifier">get_n_d_unit</span><span class="special">(</span><span class="identifier">duration_style</span><span class="special">,</span><span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span><span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">string_type</span> <span class="identifier">get_n_d_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> get_n_d_unit(style, d.count(), rt_ratio(Period())), i.e. the [N/D] suffix unit associated to this duration. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units.is_named_unit"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.is_named_unit" title="Template Member Function is_named_unit()">Template Member Function <code class="computeroutput"><span class="identifier">is_named_unit</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">bool</span> <span class="identifier">is_named_unit</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">do_is_named_unit</span><span class="special">(</span><span class="identifier">rt_ratio</span><span class="special">(</span><span class="identifier">Period</span><span class="special">()))</span></code>, true if the unit associated to the given Period is named, false otherwise. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units.do_get_n_d_unit"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.do_get_n_d_unit" title="Protected Member Function do_get_n_d_unit(duration_style,rt_ratio,intmax_t)">Protected Member Function <code class="computeroutput"><span class="identifier">do_get_n_d_unit</span><span class="special">(</span><span class="identifier">duration_style</span><span class="special">,</span><span class="identifier">rt_ratio</span><span class="special">,</span><span class="identifier">intmax_t</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_n_d_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">rt_ratio</span> <span class="identifier">rt</span><span class="special">,</span> <span class="identifier">intmax_t</span> <span class="identifier">v</span><span class="special">)</span> <span class="keyword">const</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> the [N/D] suffix unit associated to this duration. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units.do_get_unit"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.do_get_unit" title="Protected Member Function do_get_unit(duration_style,rt_ratio,intmax_t)">Protected Member Function <code class="computeroutput"><span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span><span class="special">,</span><span class="identifier">rt_ratio</span><span class="special">,</span><span class="identifier">intmax_t</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span><span class="identifier">rt_ratio</span> <span class="identifier">rt</span><span class="special">,</span> <span class="identifier">intmax_t</span> <span class="identifier">v</span><span class="special">)</span> <span class="keyword">const</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> the unit associated to this duration. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units.do_is_named_unit"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units.do_is_named_unit" title="Protected Member Function do_is_named_unit(rt_ratio)">Protected Member Function <code class="computeroutput"><span class="identifier">do_is_named_unit</span><span class="special">(</span><span class="identifier">rt_ratio</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="keyword">bool</span> <span class="identifier">do_is_named_unit</span><span class="special">(</span><span class="identifier">rt_ratio</span> <span class="identifier">rt</span><span class="special">)</span> <span class="keyword">const</span> <span class="special">=</span><span class="number">0</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> true if the unit associated to the given Period is named, false otherwise. </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default" title="Template Class duration_units_default">Template Class <code class="computeroutput"><span class="identifier">duration_units_default</span></code></a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span> <span class="special">=</span> <span class="keyword">char</span><span class="special">&gt;</span> <span class="keyword">class</span> <span class="identifier">duration_units_default</span><span class="special">:</span> <span class="keyword">public</span> <span class="identifier">duration_units</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">{</span> <span class="keyword">protected</span><span class="special">:</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pfs_</span> <span class="special">=</span> <span class="number">2</span><span class="special">;</span> <span class="comment">// The default English facet has two plural forms.</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">typedef</span> <span class="identifier">CharT</span> <span class="identifier">char_type</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">string_type</span><span class="special">;</span> <span class="keyword">explicit</span> <span class="identifier">duration_units_default</span><span class="special">(</span><span class="identifier">size_t</span> <span class="identifier">refs</span> <span class="special">=</span> <span class="number">0</span><span class="special">);</span> <span class="special">~</span><span class="identifier">duration_units_default</span><span class="special">();</span> <span class="keyword">bool</span> <span class="identifier">match_n_d_valid_unit</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">k</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">bool</span> <span class="identifier">match_valid_unit</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">k</span><span class="special">,</span> <span class="identifier">rt_ratio</span><span class="special">&amp;</span> <span class="identifier">rt</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">get_n_d_valid_units_start</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">get_n_d_valid_units_end</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">get_valid_units_start</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">get_valid_units_end</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">string_type</span> <span class="identifier">get_pattern</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">protected</span><span class="special">:</span> <span class="keyword">bool</span> <span class="identifier">do_is_named_unit</span><span class="special">(</span><span class="identifier">rt_ratio</span> <span class="identifier">rt</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">string_type</span> <span class="identifier">do_get_n_d_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">rt_ratio</span><span class="special">,</span> <span class="identifier">intmax_t</span> <span class="identifier">v</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">rt_ratio</span> <span class="identifier">rt</span><span class="special">,</span> <span class="identifier">intmax_t</span> <span class="identifier">v</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">do_get_plural_forms</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">do_get_plural_form</span><span class="special">(</span><span class="identifier">int_least64_t</span> <span class="identifier">value</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">ratio</span><span class="special">&lt;</span><span class="number">1</span><span class="special">&gt;</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">ratio</span><span class="special">&lt;</span><span class="number">60</span><span class="special">&gt;</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">ratio</span><span class="special">&lt;</span><span class="number">3600</span><span class="special">&gt;</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">atto</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">femto</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">pico</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">nano</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">micro</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">milli</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">centi</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">deci</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">deca</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">hecto</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">kilo</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">mega</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">giga</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">tera</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">peta</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">exa</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">atto</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">femto</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">pico</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">nano</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">micro</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">milli</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">centi</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">deci</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">deca</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">hecto</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">kilo</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">mega</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">giga</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">tera</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">peta</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">exa</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="special">};</span> </pre> <p> This class is used to define the strings for the default English. This facet names the units associated to the following periods: </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <code class="computeroutput"><span class="identifier">atto</span></code>, </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">femto</span></code>, </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">pico</span></code>, </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">nano</span></code>, </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">micro</span></code>, </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">milli</span></code>, </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">centi</span></code>, </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">deci</span></code>, </li> <li class="listitem"> ratio&lt;1&gt;, </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">deca</span></code>, </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">hecto</span></code>, </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">kilo</span></code>, </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">mega</span></code>, </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">giga</span></code>, </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">tera</span></code>, </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">peta</span></code>, </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">exa</span></code>, </li> <li class="listitem"> ratio&lt;60&gt; and </li> <li class="listitem"> ratio&lt;3600&gt;. </li> </ul></div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.c"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.c" title="Constructor duration_units_default()">Constructor <code class="computeroutput"><span class="identifier">duration_units_default</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">explicit</span> <span class="identifier">duration_units_default</span><span class="special">(</span><span class="identifier">size_t</span> <span class="identifier">refs</span> <span class="special">=</span> <span class="number">0</span><span class="special">);</span> </pre> <p> Construct a duration_units_default facet. </p> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <span class="bold"><strong>refs:</strong></span> references </li></ul></div> <p> <span class="bold"><strong>Effects:</strong></span> Construct a duration_units_default facet. If the <code class="computeroutput"><span class="identifier">refs</span></code> argument is <code class="computeroutput"><span class="number">0</span></code> then destruction of the object is delegated to the locale, or locales, containing it. This allows the user to ignore lifetime management issues. On the other had, if <code class="computeroutput"><span class="identifier">refs</span></code> is <code class="computeroutput"><span class="number">1</span></code> then the object must be explicitly deleted; the locale will not do so. In this case, the object can be maintained across the lifetime of multiple locales. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.d"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.d" title="Destructor ~duration_units_default()">Destructor <code class="computeroutput"><span class="special">~</span><span class="identifier">duration_units_default</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="special">~</span><span class="identifier">duration_units_default</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Destroys the facet. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.get_n_d_valid_units_start"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.get_n_d_valid_units_start" title="Member Function get_n_d_valid_units_start()">Member Function <code class="computeroutput"><span class="identifier">get_n_d_valid_units_start</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">get_n_d_valid_units_start</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> pointer to the start of valid [N/D] units. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.get_n_d_valid_units_end"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.get_n_d_valid_units_end" title="Member Function get_n_d_valid_units_end()">Member Function <code class="computeroutput"><span class="identifier">get_n_d_valid_units_end</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">get_n_d_valid_units_end</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> pointer to the end of valid [N/D] units. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.get_valid_units_start"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.get_valid_units_start" title="Member Function get_valid_units_start()">Member Function <code class="computeroutput"><span class="identifier">get_valid_units_start</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">get_valid_units_start</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> pointer to the start of valid units, symbol or prefix with its different plural forms. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.get_valid_units_end"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.get_valid_units_end" title="Member Function get_valid_units_end()">Member Function <code class="computeroutput"><span class="identifier">get_valid_units_end</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">get_valid_units_end</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> pointer to the end of valid units. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.match_n_d_valid_unit"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.match_n_d_valid_unit" title="Member Function match_n_d_valid_unit(const string_type*)">Member Function <code class="computeroutput"><span class="identifier">match_n_d_valid_unit</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="keyword">bool</span> <span class="identifier">match_n_d_valid_unit</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">k</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <span class="bold"><strong>k:</strong></span> the found pointer to the [N/D] unit. </li></ul></div> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="keyword">true</span></code> if <code class="computeroutput"><span class="identifier">k</span></code> matches a valid unit. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.match_valid_unit"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.match_valid_unit" title="Member Function match_valid_unit(const string_type*,rt_ratio&amp;)">Member Function <code class="computeroutput"><span class="identifier">match_valid_unit</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*,</span><span class="identifier">rt_ratio</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="keyword">bool</span> <span class="identifier">match_valid_unit</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">*</span> <span class="identifier">k</span><span class="special">,</span> <span class="identifier">rt_ratio</span><span class="special">&amp;</span> <span class="identifier">rt</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <span class="bold"><strong>k:</strong></span> the found pointer to the unit. </li></ul></div> <p> <span class="bold"><strong>Effects:</strong></span> <code class="computeroutput"><span class="identifier">rt</span></code> is set to the valid Period when the <code class="computeroutput"><span class="identifier">k</span></code> matches a valid unit. <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="keyword">true</span></code> if <code class="computeroutput"><span class="identifier">k</span></code> matches a valid unit. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.get_pattern"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.get_pattern" title="Member Function get_pattern()">Member Function <code class="computeroutput"><span class="identifier">get_pattern</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">get_pattern</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> the pattern to be used by default. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.do_get_n_d_unit"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.do_get_n_d_unit" title="Protected Member Function do_get_n_d_unit(duration_style,rt_ratio,intmax_t)">Protected Member Function <code class="computeroutput"><span class="identifier">do_get_n_d_unit</span><span class="special">(</span><span class="identifier">duration_style</span><span class="special">,</span><span class="identifier">rt_ratio</span><span class="special">,</span><span class="identifier">intmax_t</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_n_d_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">rt_ratio</span> <span class="identifier">rt</span><span class="special">,</span> <span class="identifier">intmax_t</span> <span class="identifier">v</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> the [N/D] suffix unit associated to this duration. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.do_get_unit"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.do_get_unit" title="Protected Member Function do_get_unit(duration_style,rt_ratio,intmax_t)">Protected Member Function <code class="computeroutput"><span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span><span class="special">,</span><span class="identifier">rt_ratio</span><span class="special">,</span><span class="identifier">intmax_t</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span><span class="identifier">rt_ratio</span> <span class="identifier">rt</span><span class="special">,</span> <span class="identifier">intmax_t</span> <span class="identifier">v</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> the unit associated to this duration. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.do_is_named_unit"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.do_is_named_unit" title="Protected Member Function do_is_named_unit(rt_ratio)">Protected Member Function <code class="computeroutput"><span class="identifier">do_is_named_unit</span><span class="special">(</span><span class="identifier">rt_ratio</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="keyword">bool</span> <span class="identifier">do_is_named_unit</span><span class="special">(</span><span class="identifier">rt_ratio</span> <span class="identifier">rt</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> true if the unit associated to the given Period is named, false otherwise. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.do_get_plural_forms"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.do_get_plural_forms" title="Protected Member Function do_get_plural_forms()">Protected Member Function <code class="computeroutput"><span class="identifier">do_get_plural_forms</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">do_get_plural_forms</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> the number of associated plural forms this facet manages. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.do_get_plural_form"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.do_get_plural_form" title="Protected Member Function do_get_plural_form(int_least64_t)">Protected Member Function <code class="computeroutput"><span class="identifier">do_get_plural_form</span><span class="special">(</span><span class="identifier">int_least64_t</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">do_get_plural_form</span><span class="special">(</span><span class="identifier">int_least64_t</span> <span class="identifier">value</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> Gets the associated plural form. </p> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <p> <span class="bold"><strong>value:</strong></span> the duration representation </p> <p> <span class="bold"><strong>Returns:</strong></span> the plural form associated to the <code class="computeroutput"><span class="identifier">value</span></code> parameter. In English there are 2 plural forms </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> 0 singular (-1 or 1) </li> <li class="listitem"> 1 plural for all others </li> </ul></div> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.do_get_unit_seconds"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.do_get_unit_seconds" title="Protected Member Function do_get_unit(duration_style,ratio&lt;1&gt;,std::size_t)">Protected Member Function <code class="computeroutput"><span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span><span class="special">,</span><span class="identifier">ratio</span><span class="special">&lt;</span><span class="number">1</span><span class="special">&gt;,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">ratio</span><span class="special">&lt;</span><span class="number">1</span><span class="special">&gt;</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>style:</strong></span> the duration style. </li> <li class="listitem"> <span class="bold"><strong>period:</strong></span> the period associated to the duration hours. </li> <li class="listitem"> <span class="bold"><strong>pf:</strong></span> the requested plural form. </li> </ul></div> <p> <span class="bold"><strong>Returns:</strong></span> if style is symbol returns "s", otherwise if pf is 0 return "second", if pf is 1 "seconds" </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.do_get_unit_minutes"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.do_get_unit_minutes" title="Protected Member Function do_get_unit(duration_style style,ratio&lt;60&gt;,std::size_t)">Protected Member Function <code class="computeroutput"><span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span><span class="identifier">ratio</span><span class="special">&lt;</span><span class="number">60</span><span class="special">&gt;,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">ratio</span><span class="special">&lt;</span><span class="number">60</span><span class="special">&gt;</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>style:</strong></span> the duration style. </li> <li class="listitem"> <span class="bold"><strong>period:</strong></span> the period associated to the duration hours. </li> <li class="listitem"> <span class="bold"><strong>pf:</strong></span> the requested plural form. </li> </ul></div> <p> <span class="bold"><strong>Returns:</strong></span> if style is symbol returns "min", otherwise if pf is 0 return "minute", if pf is 1 "minutes" </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.do_get_unit_hours"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.do_get_unit_hours" title="Protected Member Function do_get_unit(duration_style,ratio&lt;3600&gt;,std::size_t)">Protected Member Function <code class="computeroutput"><span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span><span class="special">,</span><span class="identifier">ratio</span><span class="special">&lt;</span><span class="number">3600</span><span class="special">&gt;,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">ratio</span><span class="special">&lt;</span><span class="number">3600</span><span class="special">&gt;</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>style:</strong></span> the duration style. </li> <li class="listitem"> <span class="bold"><strong>period:</strong></span> the period associated to the duration hours. </li> <li class="listitem"> <span class="bold"><strong>pf:</strong></span> the requested plural form. </li> </ul></div> <p> <span class="bold"><strong>Returns:</strong></span> if style is symbol returns "h", otherwise if pf is 0 return "hour", if pf is 1 "hours" </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.do_get_unit_xxx"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.do_get_unit_xxx" title="Protected Member Function do_get_unit(duration_style,Period,std::size_t)">Protected Member Function <code class="computeroutput"><span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span><span class="special">,</span><span class="identifier">Period</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">atto</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">femto</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">pico</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">nano</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">micro</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">milli</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">centi</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">deci</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">deca</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">hecto</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">kilo</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">mega</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">giga</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">tera</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">peta</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_unit</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">exa</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">pf</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>style:</strong></span> the duration style. </li> <li class="listitem"> <span class="bold"><strong>u:</strong></span> the period tag atto. </li> <li class="listitem"> <span class="bold"><strong>pf:</strong></span> the requested plural form. </li> </ul></div> <p> <span class="bold"><strong>Returns:</strong></span> the concatenation of the prefix associated to period <code class="computeroutput"><span class="identifier">u</span></code> + the one associated to seconds. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_units_hpp.duration_units_default.do_get_ratio_prefix_xxx"></a><a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units_default.do_get_ratio_prefix_xxx" title="Protected Member Function do_get_ratio_prefix(duration_style, Period)">Protected Member Function <code class="computeroutput"><span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">atto</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">femto</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">pico</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">nano</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">micro</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">milli</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">centi</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">deci</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">deca</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">hecto</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">kilo</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">mega</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">giga</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">tera</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">peta</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_ratio_prefix</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">style</span><span class="special">,</span> <span class="identifier">exa</span> <span class="identifier">u</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>style:</strong></span> the duration style. </li> <li class="listitem"> <span class="bold"><strong>u:</strong></span> the period tag atto. </li> </ul></div> <p> <span class="bold"><strong>Returns:</strong></span> depending on the value of <code class="computeroutput"><span class="identifier">style</span></code> return the ratio_string symbol or prefix. </p> </div> </div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.io.duration_io_hpp"></a><a class="link" href="reference.html#chrono.reference.io.duration_io_hpp" title="Header &lt;boost/chrono/io/duration_io.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">duration_io</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"> <dt><span class="section"><a href="reference.html#chrono.reference.io.duration_io_hpp.manipulators">I/O Manipulators</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io.duration_io_hpp.streams">I/O Streams Operations</a></span></dt> </dl></div> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="comment">// manipulators</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.symbol_format" title="Non Member Function symbol_format(ios_base&amp;)"><code class="computeroutput"><span class="identifier">symbol_format</span></code></a><span class="special">(</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">);</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.name_format" title="Non Member Function name_format(ios_base&amp;)"><code class="computeroutput"><span class="identifier">name_format</span></code></a><span class="special">(</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">);</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.duration_fmt" title="Template Class duration_fmt"><code class="computeroutput"><span class="identifier">duration_fmt</span></code></a><span class="special">;</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.duration_fmt.op_out" title="Member Function operator &lt;&lt;(basic_ostream&lt;&gt;&amp;, duration_fmt)"><code class="computeroutput"><span class="keyword">operator</span> <span class="special">&lt;&lt;</span></code></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">os</span><span class="special">,</span> <span class="identifier">duration_fmt</span> <span class="identifier">d</span><span class="special">);</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.duration_fmt.op_in" title="Member Function operator &gt;&gt;(basic_istream&lt;&gt;&amp;, duration_fmt)"><code class="computeroutput"><span class="keyword">operator</span> <span class="special">&gt;&gt;</span></code></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">duration_fmt</span> <span class="identifier">d</span><span class="special">);</span> <span class="comment">// duration I/O</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.streams.duration__op_out" title="Member Function operator &lt;&lt;(basic_ostream&lt;&gt;&amp;, const duration&lt;&gt;&amp; d)"><code class="computeroutput"><span class="keyword">operator</span> <span class="special">&lt;&lt;</span></code></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">os</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.streams.duration__op_in" title="Member Function operator &lt;&lt;(basic_istream&lt;&gt;&amp;, const duration&lt;&gt;&amp; d)"><code class="computeroutput"><span class="keyword">operator</span> <span class="special">&gt;&gt;</span></code></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">is</span><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">)</span> <span class="special">}</span> <span class="special">}</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io.duration_io_hpp.manipulators"></a><a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators" title="I/O Manipulators">I/O Manipulators</a> </h5></div></div></div> <p> There is a parameterized manipulator that takes the duration_style as parameter. The symbol or name format can be easily chosen by streaming a <code class="computeroutput"><span class="identifier">symbol_format</span></code> or <code class="computeroutput"><span class="identifier">name_format</span></code> manipulators respectively. </p> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_io_hpp.manipulators.duration_fmt"></a><a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.duration_fmt" title="Template Class duration_fmt">Template Class <code class="computeroutput"><span class="identifier">duration_fmt</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">class</span> <span class="identifier">duration_fmt</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">explicit</span> <a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.duration_fmt.c1" title="Constructor duration_fmt(duration_style)"><code class="computeroutput"><span class="identifier">duration_fmt</span></code></a><span class="special">(</span><a class="link" href="reference.html#chrono.reference.io.duration_style_hpp.duration_style" title="Scoped enum duration_style"><code class="computeroutput"><span class="identifier">duration_style</span></code></a> <span class="identifier">style</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span> <span class="preprocessor">#ifndef</span> <span class="identifier">BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS</span> <span class="keyword">explicit</span> <a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.duration_fmt.op_duration_style" title="Member Function operator duration_style()"><code class="computeroutput"><span class="keyword">operator</span> <span class="identifier">duration_style</span></code></a><span class="special">()</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span> <span class="preprocessor">#endif</span> <a class="link" href="reference.html#chrono.reference.io.duration_style_hpp.duration_style" title="Scoped enum duration_style"><code class="computeroutput"><span class="identifier">duration_style</span></code></a> <a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.duration_fmt.op_duration_style" title="Member Function operator duration_style()"><code class="computeroutput"><span class="identifier">get_duration_style</span></code></a><span class="special">()</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span> <span class="special">};</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.duration_fmt.op_out" title="Member Function operator &lt;&lt;(basic_ostream&lt;&gt;&amp;, duration_fmt)"><code class="computeroutput"><span class="keyword">operator</span> <span class="special">&lt;&lt;</span></code></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">os</span><span class="special">,</span> <span class="identifier">duration_fmt</span> <span class="identifier">d</span><span class="special">);</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.duration_fmt.op_in" title="Member Function operator &gt;&gt;(basic_istream&lt;&gt;&amp;, duration_fmt)"><code class="computeroutput"><span class="keyword">operator</span> <span class="special">&gt;&gt;</span></code></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">duration_fmt</span> <span class="identifier">d</span><span class="special">);</span> </pre> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_io_hpp.manipulators.duration_fmt.c1"></a><a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.duration_fmt.c1" title="Constructor duration_fmt(duration_style)">Constructor <code class="computeroutput"><span class="identifier">duration_fmt</span><span class="special">(</span><span class="identifier">duration_style</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">explicit</span> <span class="identifier">duration_fmt</span><span class="special">(</span><span class="identifier">duration_style</span> <span class="identifier">f</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Constructs a <a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.duration_fmt" title="Template Class duration_fmt"><code class="computeroutput"><span class="identifier">duration_fmt</span></code></a> by storing <code class="computeroutput"><span class="identifier">f</span></code>. </p> <p> <span class="bold"><strong>Post Conditions:</strong></span> <code class="computeroutput"><span class="keyword">static_cast</span><span class="special">&lt;</span><span class="identifier">duration_style</span><span class="special">&gt;(*</span><span class="keyword">this</span><span class="special">)</span> <span class="special">==</span> <span class="identifier">f</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_io_hpp.manipulators.duration_fmt.op_duration_style"></a><a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.duration_fmt.op_duration_style" title="Member Function operator duration_style()">Member Function <code class="computeroutput"><span class="keyword">operator</span> <span class="identifier">duration_style</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">explicit</span> <span class="keyword">operator</span> <span class="identifier">duration_style</span><span class="special">()</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span> <span class="identifier">duration_style</span> <span class="identifier">get_duration_style</span><span class="special">()</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span>: The stored <a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.duration_fmt" title="Template Class duration_fmt"><code class="computeroutput"><span class="identifier">duration_fmt</span></code></a> <code class="computeroutput"><span class="identifier">f</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_io_hpp.manipulators.duration_fmt.op_out"></a><a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.duration_fmt.op_out" title="Member Function operator &lt;&lt;(basic_ostream&lt;&gt;&amp;, duration_fmt)">Member Function <code class="computeroutput"><span class="keyword">operator</span> <span class="special">&lt;&lt;(</span><span class="identifier">basic_ostream</span><span class="special">&lt;&gt;&amp;,</span> <span class="identifier">duration_fmt</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">&gt;</span> <span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&lt;&lt;(</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">duration_fmt</span> <span class="identifier">d</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span>: <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.set_duration_style" title="Non Member Function set_duration_style(std::ios_base &amp;,duration_style)"><code class="computeroutput"><span class="identifier">set_duration_style</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="keyword">static_cast</span><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.io.duration_style_hpp.duration_style" title="Scoped enum duration_style"><code class="computeroutput"><span class="identifier">duration_style</span></code></a><span class="special">&gt;(</span><span class="identifier">d</span><span class="special">))))</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span>: <code class="computeroutput"><span class="identifier">s</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_io_hpp.manipulators.duration_fmt.op_in"></a><a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.duration_fmt.op_in" title="Member Function operator &gt;&gt;(basic_istream&lt;&gt;&amp;, duration_fmt)">Member Function <code class="computeroutput"><span class="keyword">operator</span> <span class="special">&gt;&gt;(</span><span class="identifier">basic_istream</span><span class="special">&lt;&gt;&amp;,</span> <span class="identifier">duration_fmt</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">&gt;</span> <span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&gt;&gt;(</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">duration_fmt</span> <span class="identifier">d</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span>: <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.set_duration_style" title="Non Member Function set_duration_style(std::ios_base &amp;,duration_style)"><code class="computeroutput"><span class="identifier">set_duration_style</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="keyword">static_cast</span><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.io.duration_style_hpp.duration_style" title="Scoped enum duration_style"><code class="computeroutput"><span class="identifier">duration_style</span></code></a><span class="special">&gt;(</span><span class="identifier">d</span><span class="special">))))</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span>: <code class="computeroutput"><span class="identifier">s</span></code>. </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_io_hpp.manipulators.symbol_format"></a><a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.symbol_format" title="Non Member Function symbol_format(ios_base&amp;)">Non Member Function <code class="computeroutput"><span class="identifier">symbol_format</span><span class="special">(</span><span class="identifier">ios_base</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.symbol_format" title="Non Member Function symbol_format(ios_base&amp;)"><code class="computeroutput"><span class="identifier">symbol_format</span></code></a><span class="special">(</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span>: <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.set_duration_style" title="Non Member Function set_duration_style(std::ios_base &amp;,duration_style)"><code class="computeroutput"><span class="identifier">set_duration_style</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.io.duration_style_hpp.duration_style" title="Scoped enum duration_style"><code class="computeroutput"><span class="identifier">duration_style</span></code></a><span class="special">::</span><span class="identifier">symbol</span><span class="special">)</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">ios</span></code> </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_io_hpp.manipulators.name_format"></a><a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.name_format" title="Non Member Function name_format(ios_base&amp;)">Non Member Function <code class="computeroutput"><span class="identifier">name_format</span><span class="special">(</span><span class="identifier">ios_base</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.manipulators.name_format" title="Non Member Function name_format(ios_base&amp;)"><code class="computeroutput"><span class="identifier">name_format</span></code></a><span class="special">(</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span>: <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.set_duration_style" title="Non Member Function set_duration_style(std::ios_base &amp;,duration_style)"><code class="computeroutput"><span class="identifier">set_duration_style</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.io.duration_style_hpp.duration_style" title="Scoped enum duration_style"><code class="computeroutput"><span class="identifier">duration_style</span></code></a><span class="special">::</span><span class="identifier">prefix</span><span class="special">)</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">ios</span></code> </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io.duration_io_hpp.streams"></a><a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.streams" title="I/O Streams Operations">I/O Streams Operations</a> </h5></div></div></div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_io_hpp.streams.duration__op_out"></a><a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.streams.duration__op_out" title="Member Function operator &lt;&lt;(basic_ostream&lt;&gt;&amp;, const duration&lt;&gt;&amp; d)">Member Function <code class="computeroutput"><span class="keyword">operator</span> <span class="special">&lt;&lt;(</span><span class="identifier">basic_ostream</span><span class="special">&lt;&gt;&amp;,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;&gt;&amp;</span> <span class="identifier">d</span><span class="special">)</span></code></a> </h6></div></div></div> <p> Any <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> can be streamed out to a <code class="computeroutput"><span class="identifier">basic_ostream</span></code>. The run-time value of the <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> is formatted according to the rules and current format settings for <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><code class="computeroutput"><span class="special">::</span><span class="identifier">rep</span></code> and the <a class="link" href="reference.html#chrono.reference.io.duration_units_hpp.duration_units" title="Template Class duration_units"><code class="computeroutput"><span class="identifier">duration_units</span></code></a> facet. </p> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&lt;&lt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">os</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Behaves as a formatted output function. After constructing a sentry object, if the sentry converts to true, calls to <code class="computeroutput"><span class="identifier">facet</span><span class="special">.</span><a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put.put" title="Member Function put(iter_type,std::ios_base&amp;,char_type,duration&lt;Rep,Period&gt; const&amp;, const CharT*,const CharT*)"><code class="computeroutput"><span class="identifier">put</span></code></a><span class="special">(</span><span class="identifier">os</span><span class="special">,</span><span class="identifier">os</span><span class="special">,</span><span class="identifier">os</span><span class="special">.</span><span class="identifier">fill</span><span class="special">(),</span><span class="identifier">d</span><span class="special">)</span></code> where <code class="computeroutput"><span class="identifier">facet</span></code> is the <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put" title="Template Class duration_put"><code class="computeroutput"><span class="identifier">duration_put</span></code></a><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span></code> facet associated to <code class="computeroutput"><span class="identifier">os</span></code> or a new created instance of the default <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put" title="Template Class duration_put"><code class="computeroutput"><span class="identifier">duration_put</span></code></a><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span></code> facet. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">os</span></code>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.duration_io_hpp.streams.duration__op_in"></a><a class="link" href="reference.html#chrono.reference.io.duration_io_hpp.streams.duration__op_in" title="Member Function operator &lt;&lt;(basic_istream&lt;&gt;&amp;, const duration&lt;&gt;&amp; d)">Member Function <code class="computeroutput"><span class="keyword">operator</span> <span class="special">&lt;&lt;(</span><span class="identifier">basic_istream</span><span class="special">&lt;&gt;&amp;,</span> <span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;&gt;&amp;</span> <span class="identifier">d</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&gt;&gt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">)</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Behaves as a formatted input function. After constructing a <code class="computeroutput"><span class="identifier">sentry</span></code> object, if the <code class="computeroutput"><span class="identifier">sentry</span></code> converts to <code class="computeroutput"><span class="keyword">true</span></code>, calls to <code class="computeroutput"><span class="identifier">facet</span><span class="special">.</span><a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get.get" title="Template Member Function get(iter_type,iter_type,std::ios_base&amp;,std::ios_base::iostate&amp;,duration&lt;Rep,Period&gt;&amp;,const char_type*, const char_type*) const"><code class="computeroutput"><span class="identifier">get</span></code></a><span class="special">(</span><span class="identifier">is</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;(),</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">d</span><span class="special">)</span></code> where <code class="computeroutput"><span class="identifier">facet</span></code> is the <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get" title="Template Class duration_get"><code class="computeroutput"><span class="identifier">duration_get</span></code></a><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span></code> facet associated to <code class="computeroutput"><span class="identifier">is</span></code> or a new created instance of the default <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.io.duration_get_hpp.duration_get" title="Template Class duration_get"><code class="computeroutput"><span class="identifier">duration_get</span></code></a><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span></code> facet. </p> <p> If any step fails, calls <code class="computeroutput"><span class="identifier">os</span><span class="special">.</span><span class="identifier">setstate</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">failbit</span> <span class="special">|</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">badbit</span><span class="special">)</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">is</span></code> </p> </div> </div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.io.time_point_get_hpp"></a><a class="link" href="reference.html#chrono.reference.io.time_point_get_hpp" title="Header &lt;boost/chrono/io/time_point_get.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">time_point_get</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"><dt><span class="section"><a href="reference.html#chrono.reference.io.time_point_get_hpp.time_point_get">Template Class <code class="computeroutput"><span class="identifier">time_point_get</span></code></a></span></dt></dl></div> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">InputIterator</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="keyword">class</span> <span class="identifier">time_point_get</span><span class="special">;</span> <span class="special">}</span> <span class="special">}</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io.time_point_get_hpp.time_point_get"></a><a class="link" href="reference.html#chrono.reference.io.time_point_get_hpp.time_point_get" title="Template Class time_point_get">Template Class <code class="computeroutput"><span class="identifier">time_point_get</span></code></a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">InputIterator</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="keyword">class</span> <span class="identifier">time_point_get</span><span class="special">:</span> <span class="keyword">public</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span><span class="special">::</span><span class="identifier">facet</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">typedef</span> <span class="identifier">CharT</span> <span class="identifier">char_type</span><span class="special">;</span> <span class="comment">// Type of character the facet is instantiated on.</span> <span class="keyword">typedef</span> <span class="identifier">InputIterator</span> <span class="identifier">iter_type</span><span class="special">;</span> <span class="comment">// Type of iterator used to scan the character buffer.</span> <span class="keyword">explicit</span> <span class="identifier">__time_point_get_c</span><span class="special">(</span><span class="identifier">size_t</span> <span class="identifier">refs</span> <span class="special">=</span> <span class="number">0</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">__time_point_get_get</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="special">&amp;</span><span class="identifier">tp</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span><span class="identifier">pattern</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span><span class="identifier">pat_end</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">__time_point_get_get2</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="special">&amp;</span><span class="identifier">tp</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">__time_point_get_get_duration</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">__time_point_get_get_epoch</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;</span> <span class="identifier">err</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span><span class="special">::</span><span class="identifier">id</span> <span class="identifier">id</span><span class="special">;</span> <span class="comment">// Unique identifier for this type of facet.</span> <span class="identifier">__time_point_get_d</span><span class="special">();</span> <span class="special">};</span> </pre> <p> <code class="computeroutput"><span class="identifier">time_point_get</span></code> is used to parse a character sequence, extracting the duration and the epoch into a class <code class="computeroutput"><span class="identifier">time_point</span></code>. </p> <p> The pattern can contain the format specifiers <code class="computeroutput"><span class="special">%</span><span class="identifier">d</span></code> and <code class="computeroutput"><span class="special">%</span><span class="identifier">e</span></code> in any order. </p> <p> User confirmation is required for reliable parsing of user-entered durations, but machine-generated formats can be parsed reliably. This allows parsers to be aggressive about interpreting user variations on standard formats. </p> <p> If the end iterator is reached during parsing the member function sets <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">eofbit</span></code> in <code class="computeroutput"><span class="identifier">err</span></code>. </p> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_get_hpp.time_point_get.c"></a><a class="link" href="reference.html#chrono.reference.io.time_point_get_hpp.time_point_get.c" title="Constructor time_point_get(size_t)">Constructor <code class="computeroutput"><span class="identifier">time_point_get</span><span class="special">(</span><span class="identifier">size_t</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">explicit</span> <span class="identifier">time_point_get</span><span class="special">(</span><span class="identifier">size_t</span> <span class="identifier">refs</span><span class="special">);</span> </pre> <p> Constructs a __time_point_get facet. </p> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <span class="bold"><strong>refs:</strong></span> references </li></ul></div> <p> <span class="bold"><strong>Effects:</strong></span> Constructs a <a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put" title="Template Class duration_put"><code class="computeroutput"><span class="identifier">duration_put</span></code></a> facet. If the <code class="computeroutput"><span class="identifier">refs</span></code> argument is <code class="computeroutput"><span class="number">0</span></code> then destruction of the object is delegated to the locale, or locales, containing it. This allows the user to ignore lifetime management issues. On the other had, if <code class="computeroutput"><span class="identifier">refs</span></code> is <code class="computeroutput"><span class="number">1</span></code> then the object must be explicitly deleted; <code class="computeroutput"><span class="identifier">locale</span></code> will not do so. In this case, the object can be maintained across the lifetime of multiple locales. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_get_hpp.time_point_get.d"></a><a class="link" href="reference.html#chrono.reference.io.time_point_get_hpp.time_point_get.d" title="Destructor ~time_point_get()">Destructor <code class="computeroutput"><span class="special">~</span><span class="identifier">time_point_get</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="special">~</span><span class="identifier">time_point_get</span><span class="special">();</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Destroy the facet. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_get_hpp.time_point_get.get"></a><a class="link" href="reference.html#chrono.reference.io.time_point_get_hpp.time_point_get.get" title="Template Member Function get(iter_type,iter_type,std::ios_base&amp;,std::ios_base::iostate&amp;,time_point&lt;Clock, Duration&gt;&amp;,const CharT*,const CharT*)">Template Member Function <code class="computeroutput"><span class="identifier">get</span><span class="special">(</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;,</span><span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration</span><span class="special">&gt;&amp;,</span><span class="keyword">const</span> <span class="identifier">CharT</span><span class="special">*,</span><span class="keyword">const</span> <span class="identifier">CharT</span><span class="special">*)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">get</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">end</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="special">&amp;</span><span class="identifier">tp</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span><span class="identifier">pattern</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span><span class="identifier">pat_end</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>s:</strong></span> start input stream iterator </li> <li class="listitem"> <span class="bold"><strong>end:</strong></span> end input stream iterator </li> <li class="listitem"> <span class="bold"><strong>ios:</strong></span> a reference to a <code class="computeroutput"><span class="identifier">ios_base</span></code> </li> <li class="listitem"> <span class="bold"><strong>err:</strong></span> the <code class="computeroutput"><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span></code> </li> <li class="listitem"> <span class="bold"><strong>tp:</strong></span> the <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> </li> <li class="listitem"> <span class="bold"><strong>pattern:</strong></span> begin of the formatting pattern </li> <li class="listitem"> <span class="bold"><strong>pat_end:</strong></span> end of the formatting pattern </li> </ul></div> <p> <span class="bold"><strong>Requires:</strong></span> <code class="computeroutput"><span class="special">[</span><span class="identifier">pattern</span><span class="special">,</span><span class="identifier">pat_end</span><span class="special">)</span></code> must be a valid range. </p> <p> <span class="bold"><strong>Effects:</strong></span>: The function starts by evaluating <code class="computeroutput"><span class="identifier">err</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">goodbit</span></code>. It then enters a loop, reading zero or more characters from <code class="computeroutput"><span class="identifier">s</span></code> at each iteration. Unless otherwise specified below, the loop terminates when the first of the following conditions holds: </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> The expression <code class="computeroutput"><span class="identifier">pattern</span> <span class="special">==</span> <span class="identifier">pat_end</span></code> evaluates to <code class="computeroutput"><span class="keyword">true</span></code>. </li> <li class="listitem"> The expression <code class="computeroutput"><span class="identifier">err</span> <span class="special">==</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">goodbit</span></code> evaluates to <code class="computeroutput"><span class="keyword">false</span></code>. </li> <li class="listitem"> The expression <code class="computeroutput"><span class="identifier">s</span> <span class="special">==</span> <span class="identifier">end</span></code> evaluates to <code class="computeroutput"><span class="keyword">true</span></code>, in which case the function evaluates <code class="computeroutput"><span class="identifier">err</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">eofbit</span> <span class="special">|</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">failbit</span></code>. </li> <li class="listitem"> The next element of pattern is equal to <code class="computeroutput"><span class="char">'%'</span></code>, followed by a conversion specifier character, the functions <code class="computeroutput"><span class="identifier">get_duration</span></code> or <code class="computeroutput"><span class="identifier">get_epoch</span></code> are called depending on whether the format is <code class="computeroutput"><span class="char">'d'</span></code> or <code class="computeroutput"><span class="char">'e'</span></code>. If the number of elements in the range <code class="computeroutput"><span class="special">[</span><span class="identifier">pattern</span><span class="special">,</span><span class="identifier">pat_end</span><span class="special">)</span></code> is not sufficient to unambiguously determine whether the conversion specification is complete and valid, the function evaluates <code class="computeroutput"><span class="identifier">err</span> <span class="special">|=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">failbit</span></code>. Otherwise, the function evaluates <code class="computeroutput"><span class="identifier">s</span> <span class="special">=</span> <span class="identifier">do_get</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">end</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">d</span><span class="special">)</span></code>. If <code class="computeroutput"><span class="identifier">err</span> <span class="special">==</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">goodbit</span></code> holds after the evaluation of the expression, the function increments pattern to point just past the end of the conversion specification and continues looping. </li> <li class="listitem"> The expression <code class="computeroutput"><span class="identifier">isspace</span><span class="special">(*</span><span class="identifier">pattern</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">.</span><span class="identifier">getloc</span><span class="special">())</span></code> evaluates to <code class="computeroutput"><span class="keyword">true</span></code>, in which case the function first increments <code class="computeroutput"><span class="identifier">pattern</span></code> until <code class="computeroutput"><span class="identifier">pattern</span> <span class="special">==</span> <span class="identifier">pat_end</span> <span class="special">||</span> <span class="special">!</span><span class="identifier">isspace</span><span class="special">(*</span><span class="identifier">pattern</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">.</span><span class="identifier">getloc</span><span class="special">())</span></code> evaluates to <code class="computeroutput"><span class="keyword">true</span></code>, then advances <code class="computeroutput"><span class="identifier">s</span></code> until <code class="computeroutput"><span class="identifier">s</span> <span class="special">==</span> <span class="identifier">end</span> <span class="special">||</span> <span class="special">!</span><span class="identifier">isspace</span><span class="special">(*</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">.</span><span class="identifier">getloc</span><span class="special">())</span></code> is <code class="computeroutput"><span class="keyword">true</span></code>, and finally resumes looping. </li> <li class="listitem"> The next character read from <code class="computeroutput"><span class="identifier">s</span></code> matches the element pointed to by pattern in a case-insensitive comparison, in which case the function evaluates <code class="computeroutput"><span class="special">++</span><span class="identifier">pattern</span></code>, <code class="computeroutput"><span class="special">++</span><span class="identifier">s</span></code> and continues looping. Otherwise, the function evaluates <code class="computeroutput"><span class="identifier">err</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">failbit</span></code>. </li> </ul></div> <p> <span class="bold"><strong>Returns:</strong></span> An iterator pointing just beyond the last character that can be determined to be part of a valid time_point. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_get_hpp.time_point_get.get2"></a><a class="link" href="reference.html#chrono.reference.io.time_point_get_hpp.time_point_get.get2" title="Template Member Function get(iter_type,iter_type,std::ios_base&amp;,std::ios_base::iostate&amp;,time_point&lt;Clock,Duration&gt;&amp;)">Template Member Function <code class="computeroutput"><span class="identifier">get</span><span class="special">(</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;,</span><span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span><span class="identifier">Duration</span><span class="special">&gt;&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">get</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">end</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="special">&amp;</span><span class="identifier">tp</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>s:</strong></span> start input stream iterator </li> <li class="listitem"> <span class="bold"><strong>end:</strong></span> end input stream iterator </li> <li class="listitem"> <span class="bold"><strong>ios:</strong></span> a reference to a <code class="computeroutput"><span class="identifier">ios_base</span></code> </li> <li class="listitem"> <span class="bold"><strong>err:</strong></span> the <code class="computeroutput"><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span></code> </li> <li class="listitem"> <span class="bold"><strong>tp:</strong></span> the <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> </li> </ul></div> <p> <span class="bold"><strong>Effects:</strong></span> Stores the duration pattern from the <code class="computeroutput"><span class="identifier">duration_unit</span></code> facet in let say <code class="computeroutput"><span class="identifier">str</span></code>. Last as if </p> <pre class="programlisting"><span class="keyword">return</span> <span class="identifier">get</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">end</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">d</span><span class="special">,</span> <span class="identifier">str</span><span class="special">.</span><span class="identifier">data</span><span class="special">(),</span> <span class="identifier">str</span><span class="special">.</span><span class="identifier">data</span><span class="special">()</span> <span class="special">+</span> <span class="identifier">str</span><span class="special">.</span><span class="identifier">size</span><span class="special">());</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> An iterator pointing just beyond the last character that can be determined to be part of a valid name. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_get_hpp.time_point_get.get_duration"></a><a class="link" href="reference.html#chrono.reference.io.time_point_get_hpp.time_point_get.get_duration" title="Template Member Function get_duration(iter_type,iter_type,std::ios_base&amp;,std::ios_base::iostate&amp;,duration&lt;Rep,Period&gt;&amp;)">Template Member Function <code class="computeroutput"><span class="identifier">get_duration</span><span class="special">(</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;,</span><span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span><span class="identifier">Period</span><span class="special">&gt;&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">get_duration</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">end</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> As if </p> <pre class="programlisting"><span class="keyword">return</span> <span class="identifier">facet</span><span class="special">.</span><span class="identifier">get</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">end</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">d</span><span class="special">);</span> </pre> <p> where <code class="computeroutput"><span class="identifier">facet</span></code> is either the <code class="computeroutput"><span class="identifier">duration_get</span></code> facet associated to the <code class="computeroutput"><span class="identifier">ios</span></code> or an instance of the default <code class="computeroutput"><span class="identifier">duration_get</span></code> facet. </p> <p> <span class="bold"><strong>Returns:</strong></span> An iterator pointing just beyond the last character that can be determined to be part of a valid duration. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_get_hpp.time_point_get.get_epoch"></a><a class="link" href="reference.html#chrono.reference.io.time_point_get_hpp.time_point_get.get_epoch" title="Template Member Function get_epoch(iter_type,iter_type,std::ios_base&amp;,std::ios_base::iostate&amp;)">Template Member Function <code class="computeroutput"><span class="identifier">get_epoch</span><span class="special">(</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">iter_type</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">get_epoch</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">iter_type</span> <span class="identifier">end</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">iostate</span><span class="special">&amp;</span> <span class="identifier">err</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Let <code class="computeroutput"><span class="identifier">facet</span></code> be the <a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units" title="Template Class time_point_units"><code class="computeroutput"><span class="identifier">time_point_units</span></code></a> facet associated to <code class="computeroutput"><span class="identifier">ios</span></code> or a new instance of the default __time_point_units_default facet. Let <code class="computeroutput"><span class="identifier">epoch</span></code> be the epoch string associated to the <code class="computeroutput"><span class="identifier">Clock</span></code> using this facet. Scans <code class="computeroutput"><span class="identifier">s</span></code> to match <code class="computeroutput"><span class="identifier">epoch</span></code> or <code class="computeroutput"><span class="identifier">end</span></code> is reached. </p> <p> If not match before the <code class="computeroutput"><span class="identifier">end</span></code> is reached <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">failbit</span></code> is set in <code class="computeroutput"><span class="identifier">err</span></code>. If <code class="computeroutput"><span class="identifier">end</span></code> is reached <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">failbit</span></code> is set in <code class="computeroutput"><span class="identifier">err</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> An iterator pointing just beyond the last character that can be determined to be part of a epoch. </p> </div> </div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.io.time_point_put_hpp"></a><a class="link" href="reference.html#chrono.reference.io.time_point_put_hpp" title="Header &lt;boost/chrono/io/time_point_put.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">time_point_put</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"><dt><span class="section"><a href="reference.html#chrono.reference.io.time_point_put_hpp.time_point_put">Template Class <code class="computeroutput"><span class="identifier">time_point_put</span></code></a></span></dt></dl></div> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">OutputIterator</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ostreambuf_iterator</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="keyword">class</span> <span class="identifier">time_point_put</span><span class="special">;</span> <span class="special">}</span> <span class="special">}</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io.time_point_put_hpp.time_point_put"></a><a class="link" href="reference.html#chrono.reference.io.time_point_put_hpp.time_point_put" title="Template Class time_point_put">Template Class <code class="computeroutput"><span class="identifier">time_point_put</span></code></a> </h5></div></div></div> <p> The __time_point_put facet provides facilities for formatted output of <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> values. The member function of __time_point_put take a <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> and format it into character string representation. </p> <p> tparam ChatT a character type tparam OutputIterator a model of <code class="computeroutput"><span class="identifier">OutputIterator</span></code> </p> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">OutputIterator</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ostreambuf_iterator</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="keyword">class</span> <span class="identifier">time_point_put</span><span class="special">:</span> <span class="keyword">public</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span><span class="special">::</span><span class="identifier">facet</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">typedef</span> <span class="identifier">CharT</span> <span class="identifier">char_type</span><span class="special">;</span> <span class="comment">// Type of character the facet is instantiated on.</span> <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">string_type</span><span class="special">;</span> <span class="comment">// Type of character string passed to member functions.</span> <span class="keyword">typedef</span> <span class="identifier">OutputIterator</span> <span class="identifier">iter_type</span><span class="special">;</span> <span class="comment">// Type of iterator used to write in the character buffer.</span> <span class="keyword">explicit</span> <span class="identifier">time_point_put</span><span class="special">(</span><span class="identifier">size_t</span> <span class="identifier">refs</span> <span class="special">=</span> <span class="number">0</span><span class="special">);</span> <span class="special">~</span><span class="identifier">time_point_put</span><span class="special">();</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">put</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">char_type</span> <span class="identifier">fill</span><span class="special">,</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">tp</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span><span class="special">*</span> <span class="identifier">pattern</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span><span class="special">*</span> <span class="identifier">pat_end</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">put</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">char_type</span> <span class="identifier">fill</span><span class="special">,</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">tp</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">put_duration</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">char_type</span> <span class="identifier">fill</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Clock</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">put_epoch</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">os</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span><span class="special">::</span><span class="identifier">id</span> <span class="identifier">id</span><span class="special">;</span> <span class="comment">// Unique identifier for this type of facet.</span> <span class="special">};</span> </pre> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_put_hpp.time_point_put.c"></a><a class="link" href="reference.html#chrono.reference.io.time_point_put_hpp.time_point_put.c" title="Constructor time_point_get(size_t)">Constructor <code class="computeroutput"><span class="identifier">time_point_get</span><span class="special">(</span><span class="identifier">size_t</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">explicit</span> <span class="identifier">time_point_put</span><span class="special">(</span><span class="identifier">size_t</span> <span class="identifier">refs</span> <span class="special">=</span> <span class="number">0</span><span class="special">);</span> </pre> <p> Construct a time_point_put facet. </p> <p> <span class="bold"><strong>Effects:</strong></span> Construct a time_point_put facet. If the <code class="computeroutput"><span class="identifier">refs</span></code> argument is <code class="computeroutput"><span class="number">0</span></code> then destruction of the object is delegated to the locale, or locales, containing it. This allows the user to ignore lifetime management issues. On the other had, if <code class="computeroutput"><span class="identifier">refs</span></code> is <code class="computeroutput"><span class="number">1</span></code> then the object must be explicitly deleted; the locale will not do so. In this case, the object can be maintained across the lifetime of multiple locales. </p> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <span class="bold"><strong>refs:</strong></span> references </li></ul></div> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_put_hpp.time_point_put.put1"></a><a class="link" href="reference.html#chrono.reference.io.time_point_put_hpp.time_point_put.put1" title="Member Function put()">Member Function <code class="computeroutput"><span class="identifier">put</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">put</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">char_type</span> <span class="identifier">fill</span><span class="special">,</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">tp</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span><span class="special">*</span> <span class="identifier">pattern</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span><span class="special">*</span> <span class="identifier">pat_end</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>i:</strong></span> an output stream iterator </li> <li class="listitem"> <span class="bold"><strong>ios:</strong></span> a reference to a ios_base </li> <li class="listitem"> <span class="bold"><strong>fill:</strong></span> the character used as filler </li> <li class="listitem"> <span class="bold"><strong>tp:</strong></span> the <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> </li> <li class="listitem"> <span class="bold"><strong>pattern:</strong></span> begin of the formatting pattern </li> <li class="listitem"> <span class="bold"><strong>pat_end:</strong></span> end of the formatting pattern </li> </ul></div> <p> <span class="bold"><strong>Effects:</strong></span> Steps through the sequence from <code class="computeroutput"><span class="identifier">pattern</span></code> to <code class="computeroutput"><span class="identifier">pat_end</span></code>, identifying characters that are part of a pattern sequence. Each character that is not part of a pattern sequence is written to <code class="computeroutput"><span class="identifier">s</span></code> immediately, and each pattern sequence, as it is identified, results in a call to __put_duration or __put_epoch; thus, pattern elements and other characters are interleaved in the output in the order in which they appear in the pattern. Pattern sequences are identified by converting each character <code class="computeroutput"><span class="identifier">c</span></code> to a <code class="computeroutput"><span class="keyword">char</span></code> value as if by <code class="computeroutput"><span class="identifier">ct</span><span class="special">.</span><span class="identifier">narrow</span><span class="special">(</span><span class="identifier">c</span><span class="special">,</span><span class="number">0</span><span class="special">)</span></code>, where <code class="computeroutput"><span class="identifier">ct</span></code> is a reference to <code class="computeroutput"><span class="identifier">ctype</span><span class="special">&lt;</span><span class="identifier">charT</span><span class="special">&gt;</span></code> obtained from <code class="computeroutput"><span class="identifier">ios</span><span class="special">.</span><span class="identifier">getloc</span><span class="special">()</span></code>. The first character of each sequence is equal to <code class="computeroutput"><span class="char">'%'</span></code>, followed by a pattern specifier character spec, which can be <code class="computeroutput"><span class="char">'d'</span></code> for the duration value or <code class="computeroutput"><span class="char">'e'</span></code> for the epoch. For each valid pattern sequence identified, calls <code class="computeroutput"><span class="identifier">put_duration</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">fill</span><span class="special">,</span> <span class="identifier">tp</span><span class="special">.</span><span class="identifier">time_since_epoch</span><span class="special">())</span></code> or <code class="computeroutput"><span class="identifier">put_epoch</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">)</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> An iterator pointing immediately after the last character produced. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_put_hpp.time_point_put.put2"></a><a class="link" href="reference.html#chrono.reference.io.time_point_put_hpp.time_point_put.put2" title="Member Function put()">Member Function <code class="computeroutput"><span class="identifier">put</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">put</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">char_type</span> <span class="identifier">fill</span><span class="special">,</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">Duration</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">tp</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>i:</strong></span> an output stream iterator </li> <li class="listitem"> <span class="bold"><strong>ios:</strong></span> a reference to a ios_base </li> <li class="listitem"> <span class="bold"><strong>fill:</strong></span> the character used as filler </li> <li class="listitem"> <span class="bold"><strong>tp:</strong></span> the <a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a> </li> <li class="listitem"> <span class="bold"><strong>tern:</strong></span> begin of the formatting pattern </li> <li class="listitem"> <span class="bold"><strong>pat_end:</strong></span> end of the formatting pattern </li> </ul></div> <p> <span class="bold"><strong>Effects:</strong></span> Stores the time_point pattern from the __time_point_unit facet in let say <code class="computeroutput"><span class="identifier">str</span></code>. Last as if </p> <pre class="programlisting"><span class="keyword">return</span> <span class="identifier">put</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">fill</span><span class="special">,</span> <span class="identifier">tp</span><span class="special">,</span> <span class="identifier">str</span><span class="special">.</span><span class="identifier">data</span><span class="special">(),</span> <span class="identifier">str</span><span class="special">.</span><span class="identifier">data</span><span class="special">()</span> <span class="special">+</span> <span class="identifier">str</span><span class="special">.</span><span class="identifier">size</span><span class="special">());</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> An iterator pointing immediately after the last character produced. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_put_hpp.time_point_put.put_duration"></a><a class="link" href="reference.html#chrono.reference.io.time_point_put_hpp.time_point_put.put_duration" title="Member Function put_duration()">Member Function <code class="computeroutput"><span class="identifier">put_duration</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">put_duration</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">char_type</span> <span class="identifier">fill</span><span class="special">,</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">d</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>i:</strong></span> an output stream iterator </li> <li class="listitem"> <span class="bold"><strong>ios:</strong></span> a reference to a ios_base </li> <li class="listitem"> <span class="bold"><strong>fill:</strong></span> the character used as filler </li> <li class="listitem"> <span class="bold"><strong>d:</strong></span> the <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a> </li> </ul></div> <p> <span class="bold"><strong>Effects:</strong></span> As if <code class="computeroutput"><span class="identifier">facet</span><span class="special">.</span><span class="identifier">put</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">ios</span><span class="special">,</span> <span class="identifier">fill</span><span class="special">,</span> <span class="identifier">d</span><span class="special">)</span></code> where facet is the <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put" title="Template Class duration_put"><code class="computeroutput"><span class="identifier">duration_put</span></code></a><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span></code> facet associated to the <code class="computeroutput"><span class="identifier">ios</span></code> or a new instance of <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.io.duration_put_hpp.duration_put" title="Template Class duration_put"><code class="computeroutput"><span class="identifier">duration_put</span></code></a><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> An iterator pointing immediately after the last character produced. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_put_hpp.time_point_put.put_epoch"></a><a class="link" href="reference.html#chrono.reference.io.time_point_put_hpp.time_point_put.put_epoch" title="Member Function put_epoch()">Member Function <code class="computeroutput"><span class="identifier">put_epoch</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Clock</span><span class="special">&gt;</span> <span class="identifier">iter_type</span> <span class="identifier">put_epoch</span><span class="special">(</span><span class="identifier">iter_type</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">&amp;</span> <span class="identifier">os</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <span class="bold"><strong>i:</strong></span> an output stream iterator </li> <li class="listitem"> <span class="bold"><strong>ios:</strong></span> a reference to a ios_base </li> </ul></div> <p> <span class="bold"><strong>Effects:</strong></span> As if </p> <pre class="programlisting"><span class="identifier">string_type</span> <span class="identifier">str</span> <span class="special">=</span> <span class="identifier">facet</span><span class="special">.</span><span class="keyword">template</span> <span class="identifier">get_epoch</span><span class="special">&lt;</span><span class="identifier">Clock</span><span class="special">&gt;();</span> <span class="identifier">s</span><span class="special">=</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">copy</span><span class="special">(</span><span class="identifier">str</span><span class="special">.</span><span class="identifier">begin</span><span class="special">(),</span> <span class="identifier">str</span><span class="special">.</span><span class="identifier">end</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">);</span> </pre> <p> where facet is the <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units" title="Template Class time_point_units"><code class="computeroutput"><span class="identifier">time_point_units</span></code></a><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span></code> facet associated to the <code class="computeroutput"><span class="identifier">ios</span></code> or a new instance of <code class="computeroutput"><span class="identifier">__time_point_units_default</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> s, iterator pointing immediately after the last character produced. </p> </div> </div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.io.time_point_units_hpp"></a><a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp" title="Header &lt;boost/chrono/io/time_point_units.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">time_point_units</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"> <dt><span class="section"><a href="reference.html#chrono.reference.io.time_point_units_hpp.get_epoch_custom">Template Function <code class="computeroutput"><span class="identifier">get_epoch_custom</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units">Template Class <code class="computeroutput"><span class="identifier">time_point_units</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units_default">Template Class <code class="computeroutput"><span class="identifier">time_point_units_default</span></code></a></span></dt> </dl></div> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">TPUFacet</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">get_epoch_custom</span><span class="special">(</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">TPUFacet</span><span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span><span class="special">=</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="keyword">class</span> <span class="identifier">time_point_units</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span><span class="special">=</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="keyword">class</span> <span class="identifier">time_point_units_default</span><span class="special">,</span> <span class="special">}</span> <span class="special">}</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io.time_point_units_hpp.get_epoch_custom"></a><a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.get_epoch_custom" title="Template Function get_epoch_custom">Template Function <code class="computeroutput"><span class="identifier">get_epoch_custom</span></code></a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">TPUFacet</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">get_epoch_custom</span><span class="special">(</span><span class="identifier">Clock</span><span class="special">,</span> <span class="identifier">TPUFacet</span><span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span> </pre> <p> Customization point to the epoch associated to the clock <code class="computeroutput"><span class="identifier">Clock</span></code> The default calls <code class="computeroutput"><span class="identifier">f</span><span class="special">.</span><span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">Clock</span><span class="special">())</span></code>. </p> <p> The user can overload this function. </p> <p> <span class="bold"><strong>Returns:</strong></span> Forwards the call to the facet as if </p> <pre class="programlisting"><span class="keyword">return</span> <span class="identifier">f</span><span class="special">.</span><span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">Clock</span><span class="special">());</span> </pre> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io.time_point_units_hpp.time_point_units"></a><a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units" title="Template Class time_point_units">Template Class <code class="computeroutput"><span class="identifier">time_point_units</span></code></a> </h5></div></div></div> <p> <a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units" title="Template Class time_point_units"><code class="computeroutput"><span class="identifier">time_point_units</span></code></a> facet gives useful information about the time_point pattern, the text associated to a time_point's epoch, </p> <pre class="programlisting"> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span><span class="special">=</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="keyword">class</span> <span class="identifier">time_point_units</span><span class="special">:</span> <span class="keyword">public</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span><span class="special">::</span><span class="identifier">facet</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">typedef</span> <span class="identifier">CharT</span> <span class="identifier">char_type</span><span class="special">;</span> <span class="comment">// Type of character the facet is instantiated on.</span> <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">char_type</span><span class="special">&gt;</span> <span class="identifier">string_type</span><span class="special">;</span> <span class="comment">// Type of character string used by member functions.</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span><span class="special">::</span><span class="identifier">id</span> <span class="identifier">id</span><span class="special">;</span> <span class="comment">// Unique identifier for this type of facet.</span> <span class="keyword">explicit</span> <span class="identifier">time_point_units</span><span class="special">(</span><span class="identifier">size_t</span> <span class="identifier">refs</span> <span class="special">=</span> <span class="number">0</span><span class="special">);</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">get_pattern</span><span class="special">()</span> <span class="keyword">const</span> <span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Clock</span><span class="special">&gt;</span> <span class="identifier">string_type</span> <span class="identifier">get_epoch</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">protected</span><span class="special">:</span> <span class="keyword">virtual</span> <span class="special">~</span><span class="identifier">time_point_units</span><span class="special">();</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">system_clock</span><span class="special">)</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">steady_clock</span><span class="special">)</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="preprocessor">#if</span> <span class="identifier">defined</span><span class="special">(</span><span class="identifier">BOOST_CHRONO_HAS_PROCESS_CLOCKS</span><span class="special">)</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">process_real_cpu_clock</span><span class="special">)</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">process_user_cpu_clock</span><span class="special">)</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">process_system_cpu_clock</span><span class="special">)</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">process_cpu_clock</span><span class="special">)</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="preprocessor">#endif</span> <span class="preprocessor">#if</span> <span class="identifier">defined</span><span class="special">(</span><span class="identifier">BOOST_CHRONO_HAS_THREAD_CLOCK</span><span class="special">)</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">thread_clock</span><span class="special">)</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="preprocessor">#endif</span> <span class="special">};</span> </pre> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_units_hpp.time_point_units.c"></a><a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units.c" title="Constructor time_point_units()">Constructor <code class="computeroutput"><span class="identifier">time_point_units</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">explicit</span> <span class="identifier">time_point_units</span><span class="special">(</span><span class="identifier">size_t</span> <span class="identifier">refs</span> <span class="special">=</span> <span class="number">0</span><span class="special">);</span> </pre> <p> Construct a <a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units" title="Template Class time_point_units"><code class="computeroutput"><span class="identifier">time_point_units</span></code></a> facet. </p> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <span class="bold"><strong>refs:</strong></span> references </li></ul></div> <p> <span class="bold"><strong>Effects:</strong></span> Construct a <a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units" title="Template Class time_point_units"><code class="computeroutput"><span class="identifier">time_point_units</span></code></a> facet. If the <code class="computeroutput"><span class="identifier">refs</span></code> argument is <code class="computeroutput"><span class="number">0</span></code> then destruction of the object is delegated to the locale, or locales, containing it. This allows the user to ignore lifetime management issues. On the other had, if <code class="computeroutput"><span class="identifier">refsv</span> <span class="identifier">is</span> </code>1` then the object must be explicitly deleted; the locale will not do so. In this case, the object can be maintained across the lifetime of multiple locales. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_units_hpp.time_point_units.get_pattern"></a><a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units.get_pattern" title="Member Function get_pattern()">Member Function <code class="computeroutput"><span class="identifier">get_pattern</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">get_pattern</span><span class="special">()</span> <span class="keyword">const</span> <span class="special">=</span><span class="number">0</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> the pattern to be used by default. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_units_hpp.time_point_units.get_epoch"></a><a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units.get_epoch" title="Member Function get_epoch()">Member Function <code class="computeroutput"><span class="identifier">get_epoch</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Clock</span><span class="special">&gt;</span> <span class="identifier">string_type</span> <span class="identifier">get_epoch</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> the epoch associated to the clock <code class="computeroutput"><span class="identifier">Clock</span></code> as if <code class="computeroutput"><span class="keyword">return</span> <span class="identifier">get_epoch_custom</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;(</span><span class="identifier">Clock</span><span class="special">(),</span> <span class="special">*</span><span class="keyword">this</span><span class="special">);</span> </code> </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_units_hpp.time_point_units.d"></a><a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units.d" title="Destructor time_point_units()">Destructor <code class="computeroutput"><span class="identifier">time_point_units</span><span class="special">()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="special">~</span><span class="identifier">time_point_units</span><span class="special">();</span> </pre> <p> Destroy the facet. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_units_hpp.time_point_units.do_get_epoch_system_clock"></a><a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units.do_get_epoch_system_clock" title="Member Function do_get_epoch(system_clock)">Member Function <code class="computeroutput"><span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">system_clock</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">system_clock</span><span class="special">)</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <span class="bold"><strong>c:</strong></span> a dummy instance of <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.system_clock" title="Class system_clock"><code class="computeroutput"><span class="identifier">system_clock</span></code></a>. </li></ul></div> <p> <span class="bold"><strong>Returns:</strong></span> The epoch string associated to the <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.system_clock" title="Class system_clock"><code class="computeroutput"><span class="identifier">system_clock</span></code></a>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_units_hpp.time_point_units.do_get_epoch_steady_clock"></a><a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units.do_get_epoch_steady_clock" title="Member Function do_get_epoch(steady_clock)">Member Function <code class="computeroutput"><span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">steady_clock</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">steady_clock</span><span class="special">)</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <span class="bold"><strong>c:</strong></span> a dummy instance of <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.steady_clock" title="Class steady_clock"><code class="computeroutput"><span class="identifier">steady_clock</span></code></a>. </li></ul></div> <p> <span class="bold"><strong>Returns:</strong></span> The epoch string associated to the <a class="link" href="reference.html#chrono.reference.cpp0x.system_clocks_hpp.steady_clock" title="Class steady_clock"><code class="computeroutput"><span class="identifier">steady_clock</span></code></a>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_units_hpp.time_point_units.do_get_epoch_process_real_cpu_clock"></a><a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units.do_get_epoch_process_real_cpu_clock" title="Member Function do_get_epoch(process_real_cpu_clock)">Member Function <code class="computeroutput"><span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">process_real_cpu_clock</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="preprocessor">#if</span> <span class="identifier">defined</span><span class="special">(</span><span class="identifier">BOOST_CHRONO_HAS_PROCESS_CLOCKS</span><span class="special">)</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">process_real_cpu_clock</span><span class="special">)</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="preprocessor">#endif</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <span class="bold"><strong>c:</strong></span> a dummy instance of <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_real_cpu_clock" title="Class process_real_cpu_clock"><code class="computeroutput"><span class="identifier">process_real_cpu_clock</span></code></a>. </li></ul></div> <p> <span class="bold"><strong>Returns:</strong></span> The epoch string associated to the <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_real_cpu_clock" title="Class process_real_cpu_clock"><code class="computeroutput"><span class="identifier">process_real_cpu_clock</span></code></a>. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_units_hpp.time_point_units.do_get_epoch_process_user_cpu_clock"></a><a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units.do_get_epoch_process_user_cpu_clock" title="Member Function do_get_epoch(process_user_cpu_clock)">Member Function <code class="computeroutput"><span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">process_user_cpu_clock</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="preprocessor">#if</span> <span class="identifier">defined</span><span class="special">(</span><span class="identifier">BOOST_CHRONO_HAS_PROCESS_CLOCKS</span><span class="special">)</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">process_user_cpu_clock</span><span class="special">)</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="preprocessor">#endif</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <span class="bold"><strong>c:</strong></span> a dummy instance of <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_real_cpu_clock" title="Class process_real_cpu_clock"><code class="computeroutput"><span class="identifier">process_real_cpu_clock</span></code></a>. </li></ul></div> <p> <span class="bold"><strong>Returns:</strong></span> The epoch string associated to the process_user_cpu_clock. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_units_hpp.time_point_units.do_get_epoch_process_system_cpu_clock"></a><a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units.do_get_epoch_process_system_cpu_clock" title="Member Function do_get_epoch(process_system_cpu_clock)">Member Function <code class="computeroutput"><span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">process_system_cpu_clock</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="preprocessor">#if</span> <span class="identifier">defined</span><span class="special">(</span><span class="identifier">BOOST_CHRONO_HAS_PROCESS_CLOCKS</span><span class="special">)</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">process_system_cpu_clock</span><span class="special">)</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="preprocessor">#endif</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <span class="bold"><strong>c:</strong></span> a dummy instance of <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_system_cpu_clock" title="Class process_system_cpu_clock"><code class="computeroutput"><span class="identifier">process_system_cpu_clock</span></code></a>. </li></ul></div> <p> <span class="bold"><strong>Returns:</strong></span> The epoch string associated to the process_user_cpu_clock. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_units_hpp.time_point_units.do_get_epoch_process_process_cpu_clock"></a><a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units.do_get_epoch_process_process_cpu_clock" title="Member Function do_get_epoch(process_cpu_clock)">Member Function <code class="computeroutput"><span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">process_cpu_clock</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="preprocessor">#if</span> <span class="identifier">defined</span><span class="special">(</span><span class="identifier">BOOST_CHRONO_HAS_PROCESS_CLOCKS</span><span class="special">)</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">process_cpu_clock</span><span class="special">)</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="preprocessor">#endif</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <span class="bold"><strong>c:</strong></span> a dummy instance of <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_cpu_clock" title="Class process_cpu_clock"><code class="computeroutput"><span class="identifier">process_cpu_clock</span></code></a>. </li></ul></div> <p> <span class="bold"><strong>Returns:</strong></span> The epoch string associated to the process_cpu_clock. </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_units_hpp.time_point_units.do_get_epoch_process_thread_clock"></a><a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units.do_get_epoch_process_thread_clock" title="Member Function do_get_epoch(thread_clock)">Member Function <code class="computeroutput"><span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">thread_clock</span><span class="special">)</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="preprocessor">#if</span> <span class="identifier">defined</span><span class="special">(</span><span class="identifier">BOOST_CHRONO_HAS_THREAD_CLOCK</span><span class="special">)</span> <span class="keyword">virtual</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">thread_clock</span><span class="special">)</span> <span class="keyword">const</span><span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="preprocessor">#endif</span> </pre> <p> <span class="bold"><strong>Parameters:</strong></span> </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <span class="bold"><strong>c:</strong></span> a dummy instance of <a class="link" href="reference.html#chrono.reference.other_clocks.thread_clock_hpp.thread_clock" title="Class thread_clock"><code class="computeroutput"><span class="identifier">thread_clock</span></code></a>. </li></ul></div> <p> <span class="bold"><strong>Returns:</strong></span> The epoch string associated to the <a class="link" href="reference.html#chrono.reference.other_clocks.thread_clock_hpp.thread_clock" title="Class thread_clock"><code class="computeroutput"><span class="identifier">thread_clock</span></code></a>. </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io.time_point_units_hpp.time_point_units_default"></a><a class="link" href="reference.html#chrono.reference.io.time_point_units_hpp.time_point_units_default" title="Template Class time_point_units_default">Template Class <code class="computeroutput"><span class="identifier">time_point_units_default</span></code></a> </h5></div></div></div> <pre class="programlisting"> <span class="comment">// This class is used to define the strings for the default English</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span><span class="special">=</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="keyword">class</span> <span class="identifier">time_point_units_default</span><span class="special">:</span> <span class="keyword">public</span> <span class="identifier">time_point_units</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">typedef</span> <span class="identifier">CharT</span> <span class="identifier">char_type</span><span class="special">;</span> <span class="comment">// Type of character the facet is instantiated on.</span> <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">char_type</span><span class="special">&gt;</span> <span class="identifier">string_type</span><span class="special">;</span> <span class="comment">// Type of character string used by member functions.</span> <span class="keyword">explicit</span> <span class="identifier">time_point_units_default</span><span class="special">(</span><span class="identifier">size_t</span> <span class="identifier">refs</span> <span class="special">=</span> <span class="number">0</span><span class="special">);</span> <span class="special">~</span><span class="identifier">time_point_units_default</span><span class="special">();</span> <span class="comment">/** * __returns the default pattern "%d%e". */</span> <span class="identifier">string_type</span> <span class="identifier">get_pattern</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">protected</span><span class="special">:</span> <span class="comment">/** * [param c a dummy instance of __system_clock. * __returns The epoch string returned by `clock_string&lt;system_clock,CharT&gt;::since()`. */</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">system_clock</span> <span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="comment">/** * [param c a dummy instance of __steady_clock. * __returns The epoch string returned by `clock_string&lt;steady_clock,CharT&gt;::since()`. */</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">steady_clock</span> <span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="preprocessor">#if</span> <span class="identifier">defined</span><span class="special">(</span><span class="identifier">BOOST_CHRONO_HAS_PROCESS_CLOCKS</span><span class="special">)</span> <span class="comment">/** * [param c a dummy instance of __process_real_cpu_clock. * __returns The epoch string returned by `clock_string&lt;process_real_cpu_clock,CharT&gt;::since()`. */</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">process_real_cpu_clock</span> <span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="comment">/** * [param c a dummy instance of __process_user_cpu_clock. * __returns The epoch string returned by `clock_string&lt;process_user_cpu_clock,CharT&gt;::since()`. */</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">process_user_cpu_clock</span> <span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="comment">/** * [param c a dummy instance of __process_system_cpu_clock. * __returns The epoch string returned by `clock_string&lt;process_system_cpu_clock,CharT&gt;::since()`. */</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">process_system_cpu_clock</span> <span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="comment">/** * [param c a dummy instance of __process_cpu_clock. * __returns The epoch string returned by `clock_string&lt;process_cpu_clock,CharT&gt;::since()`. */</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">process_cpu_clock</span> <span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="preprocessor">#endif</span> <span class="preprocessor">#if</span> <span class="identifier">defined</span><span class="special">(</span><span class="identifier">BOOST_CHRONO_HAS_THREAD_CLOCK</span><span class="special">)</span> <span class="comment">/** * [param c a dummy instance of __thread_clock. * __returns The epoch string returned by `clock_string&lt;thread_clock,CharT&gt;::since()`. */</span> <span class="identifier">string_type</span> <span class="identifier">do_get_epoch</span><span class="special">(</span><span class="identifier">thread_clock</span> <span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="preprocessor">#endif</span> <span class="special">};</span> </pre> </div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.io.time_point_io_hpp"></a><a class="link" href="reference.html#chrono.reference.io.time_point_io_hpp" title="Header &lt;boost/chrono/io/time_point_io.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">time_point_io</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"> <dt><span class="section"><a href="reference.html#chrono.reference.io.time_point_io_hpp.manip">I/O Manipulators</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.io.time_point_io_hpp.streams">I/O Streams Operations</a></span></dt> </dl></div> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="comment">// manipulators</span> <span class="identifier">unspecified</span> <a class="link" href="reference.html#chrono.reference.io.time_point_io_hpp.manip.time_fmt1" title="Non Member Function time_fmt(timezone)"><code class="computeroutput"><span class="identifier">time_fmt</span></code></a><span class="special">(</span><span class="identifier">timezone</span> <span class="identifier">tz</span><span class="special">);</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">unspecified</span> <a class="link" href="reference.html#chrono.reference.io.time_point_io_hpp.manip.time_fmt2" title="Non Member Function time_fmt(timezone, string)"><code class="computeroutput"><span class="identifier">time_fmt</span></code></a><span class="special">(</span><span class="identifier">timezone</span> <span class="identifier">tz</span><span class="special">,</span> <span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">f</span><span class="special">);</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">unspecified</span> <a class="link" href="reference.html#chrono.reference.io.time_point_io_hpp.manip.time_fmt2" title="Non Member Function time_fmt(timezone, string)"><code class="computeroutput"><span class="identifier">time_fmt</span></code></a><span class="special">(</span><span class="identifier">timezone</span> <span class="identifier">tz</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span><span class="special">*</span> <span class="identifier">f</span><span class="special">);</span> <span class="comment">// i/o state savers</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span> <span class="special">=</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Traits</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">char_traits</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver" title="Template Class timezone_io_saver&lt;&gt;"><code class="computeroutput"><span class="identifier">timezone_io_saver</span></code></a> <span class="special">{</span> <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ios</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;</span> <span class="identifier">state_type</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">timezone</span> <span class="identifier">aspect_type</span><span class="special">;</span> <span class="keyword">explicit</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver.c1" title="Constructor timezone_io_saver(state_type&amp;)"><code class="computeroutput"><span class="identifier">timezone_io_saver</span></code></a><span class="special">(</span><span class="identifier">state_type</span> <span class="special">&amp;</span><span class="identifier">s</span><span class="special">);</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver.c2" title="Constructor timezone_io_saver(state_type&amp;, aspect_type)"><code class="computeroutput"><span class="identifier">timezone_io_saver</span></code></a><span class="special">(</span><span class="identifier">state_type</span> <span class="special">&amp;</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">aspect_type</span> <span class="identifier">new_value</span><span class="special">);</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.timezone_io_saver.d" title="Destructor ~timezone_io_saver()"><code class="computeroutput"><span class="special">~</span><span class="identifier">timezone_io_saver</span></code></a><span class="special">();</span> <span class="keyword">void</span> <span class="identifier">timezone_io_saver__restore</span><span class="special">();</span> <span class="special">};</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CharT</span> <span class="special">=</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Traits</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">char_traits</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.ioss.time_fmt_io_saver" title="Template Class time_fmt_io_saver&lt;&gt;"><code class="computeroutput"><span class="identifier">time_fmt_io_saver</span></code></a> <span class="special">{</span> <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ios</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;</span> <span class="identifier">state_type</span><span class="special">;</span> <span class="keyword">explicit</span> <span class="identifier">time_fmt_io_saver</span><span class="special">(</span><span class="identifier">state_type</span> <span class="special">&amp;</span><span class="identifier">s</span><span class="special">);</span> <span class="identifier">time_fmt_io_saver</span><span class="special">(</span><span class="identifier">state_type</span> <span class="special">&amp;</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">new_value</span><span class="special">);</span> <span class="special">~</span> <span class="identifier">time_fmt_io_saver</span><span class="special">();</span> <span class="keyword">void</span> <span class="identifier">restore</span><span class="special">();</span> <span class="special">};</span> <span class="comment">// system_clock I/O</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;</span> <span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&lt;&lt;(</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">os</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">system_clock</span><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">tp</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;</span> <span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&gt;&gt;(</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">system_clock</span><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">tp</span><span class="special">);</span> <span class="comment">// Other Clocks I/O</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&lt;&lt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">os</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">tp</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&gt;&gt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">time_point</span><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">tp</span><span class="special">);</span> <span class="special">}</span> <span class="special">}</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io.time_point_io_hpp.manip"></a><a class="link" href="reference.html#chrono.reference.io.time_point_io_hpp.manip" title="I/O Manipulators">I/O Manipulators</a> </h5></div></div></div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_io_hpp.manip.time_fmt1"></a>Non Member Function <code class="computeroutput"><span class="identifier">time_fmt</span><span class="special">(</span><a class="link" href="reference.html#chrono.reference.io.timezone_hpp.timezone" title="Scoped enum timezone"><code class="computeroutput"><span class="identifier">timezone</span></code></a><span class="special">)</span></code> </h6></div></div></div> <pre class="programlisting"><span class="identifier">unspecified</span> <span class="identifier">time_fmt</span><span class="special">(</span><a class="link" href="reference.html#chrono.reference.io.timezone_hpp.timezone" title="Scoped enum timezone"><code class="computeroutput"><span class="identifier">timezone</span></code></a> <span class="identifier">tz</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span>: An unspecified object that when streamed to a <code class="computeroutput"><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;</span></code> or <code class="computeroutput"><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;</span></code> <code class="computeroutput"><span class="identifier">s</span></code> will have the effects of: </p> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.set_timezone" title="Non Member Function set_timezone(std::ios_base&amp;,duration_style)"><code class="computeroutput"><span class="identifier">set_timezone</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">tz</span><span class="special">);</span> </pre> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_io_hpp.manip.time_fmt2"></a>Non Member Function <code class="computeroutput"><span class="identifier">time_fmt</span><span class="special">(</span><a class="link" href="reference.html#chrono.reference.io.timezone_hpp.timezone" title="Scoped enum timezone"><code class="computeroutput"><span class="identifier">timezone</span></code></a><span class="special">,</span> <span class="identifier">string</span><span class="special">)</span></code> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">unspecified</span> <span class="identifier">time_fmt</span><span class="special">(</span><span class="identifier">timezone</span> <span class="identifier">tz</span><span class="special">,</span> <span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">f</span><span class="special">);</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">unspecified</span> <span class="identifier">time_fmt</span><span class="special">(</span><span class="identifier">timezone</span> <span class="identifier">tz</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span><span class="special">*</span> <span class="identifier">f</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span>: An unspecified object that when streamed to a <code class="computeroutput"><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;</span></code> or <code class="computeroutput"><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;</span></code> <code class="computeroutput"><span class="identifier">s</span></code> will have the effects of: </p> <pre class="programlisting"><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.set_timezone" title="Non Member Function set_timezone(std::ios_base&amp;,duration_style)"><code class="computeroutput"><span class="identifier">set_timezone</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">tz</span><span class="special">);</span> <a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.set_time_fmt" title="Non Member Function set_time_fmt(std::ios_base&amp;, std::basic_string&lt;CharT&gt; const&amp;)"><code class="computeroutput"><span class="identifier">set_time_fmt</span></code></a><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> </pre> </div> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.io.time_point_io_hpp.streams"></a><a class="link" href="reference.html#chrono.reference.io.time_point_io_hpp.streams" title="I/O Streams Operations">I/O Streams Operations</a> </h5></div></div></div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_io_hpp.streams.system_clock"></a><a class="link" href="reference.html#chrono.reference.io.time_point_io_hpp.streams.system_clock" title="system_clock"><code class="computeroutput"><span class="identifier">system_clock</span></code></a> </h6></div></div></div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_io_hpp.streams.system_clock.op_out"></a><a class="link" href="reference.html#chrono.reference.io.time_point_io_hpp.streams.system_clock.op_out" title="Non Member Function operator&lt;&lt;()">Non Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">&lt;&lt;()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&lt;&lt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">os</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">system_clock</span><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">tp</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Behaves as a formatted output function. After constructing a <code class="computeroutput"><span class="identifier">sentry</span></code> object, if the <code class="computeroutput"><span class="identifier">sentry</span></code> converts to <code class="computeroutput"><span class="keyword">true</span></code>, sets a local variable <code class="computeroutput"><span class="identifier">tz</span></code> of type <a class="link" href="reference.html#chrono.reference.io.timezone_hpp.timezone" title="Scoped enum timezone"><code class="computeroutput"><span class="identifier">timezone</span></code></a> to <code class="computeroutput"><span class="identifier">get_timezone</span><span class="special">(</span><span class="identifier">os</span><span class="special">)</span></code>. Additionally the format string obtained with <code class="computeroutput"><a class="link" href="reference.html#chrono.reference.io.ios_state_hpp.sag.get_time_fmt" title="Non Member Function get_time_fmt(std::ios_base &amp;)"><code class="computeroutput"><span class="identifier">get_time_fmt</span></code></a><span class="special">()</span></code> is recorded as a pair of <code class="computeroutput"><span class="keyword">const</span> <span class="identifier">CharT</span><span class="special">*</span></code>. If the stream has no time_punct facet, then this pair of <code class="computeroutput"><span class="keyword">const</span> <span class="identifier">CharT</span><span class="special">*</span></code> that represent an empty range. </p> <p> Next <code class="computeroutput"><span class="identifier">tp</span></code> is converted to a <code class="computeroutput"><span class="identifier">time_t</span></code>, and this <code class="computeroutput"><span class="identifier">time_t</span></code> is converted to a <code class="computeroutput"><span class="identifier">tm</span></code>. The conversion to <code class="computeroutput"><span class="identifier">tm</span></code> use <code class="computeroutput"><span class="identifier">gmtime</span></code> (when available) if the timezone is <a class="link" href="reference.html#chrono.reference.io.timezone_hpp.timezone" title="Scoped enum timezone"><code class="computeroutput"><span class="identifier">utc</span></code></a>, else it use localtime (if available). </p> <p> Using the <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">time_put</span></code> facet stored in <code class="computeroutput"><span class="identifier">os</span></code>, this inserter writes characters to the stream using the <code class="computeroutput"><span class="identifier">tm</span></code> and the formatting string stored in the <code class="computeroutput"><span class="identifier">time_punct</span></code> facet, unless that facet was missing, or unless it provided an empty string. </p> <p> If the formatting string is empty, then output as follows: </p> <p> First output <code class="computeroutput"><span class="identifier">tm</span></code> using <code class="computeroutput"><span class="string">"%F %H:%M:"</span></code> </p> <p> Next output a <code class="computeroutput"><span class="keyword">double</span></code> representing the number of seconds stored in the <code class="computeroutput"><span class="identifier">tm</span></code> plus the fractional seconds represented in <code class="computeroutput"><span class="identifier">tp</span></code>. The format shall be <code class="computeroutput"><span class="identifier">ios</span><span class="special">::</span><span class="identifier">fixed</span></code> and the precision shall be sufficient to represent <code class="computeroutput"><span class="identifier">system_clock</span><span class="special">::</span><span class="identifier">duration</span></code> exactly (e.g. if <code class="computeroutput"><span class="identifier">system_clock</span><span class="special">::</span><span class="identifier">period</span></code> is micro, the precision should be sufficient to output six digits following the decimal point). If the number of seconds is less than <code class="computeroutput"><span class="number">10</span></code>, the output shall be prefixed by <code class="computeroutput"><span class="char">'0'</span></code>. </p> <p> Finally if <code class="computeroutput"><span class="identifier">tz</span></code> is <a class="link" href="reference.html#chrono.reference.io.timezone_hpp.timezone" title="Scoped enum timezone"><code class="computeroutput"><span class="identifier">local</span></code></a>, output the <code class="computeroutput"><span class="identifier">tm</span></code> using the pattern " %z". Else append the sequence " +0000" to the stream. </p> <p> If any step fails, calls <code class="computeroutput"><span class="identifier">os</span><span class="special">.</span><span class="identifier">setstate</span><span class="special">(</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">failbit</span> <span class="special">|</span> <span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">badbit</span><span class="special">)</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">os</span></code> </p> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_io_hpp.streams.system_clock.op_in"></a><a class="link" href="reference.html#chrono.reference.io.time_point_io_hpp.streams.system_clock.op_in" title="Non Member Function operator&gt;&gt;()">Non Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">&gt;&gt;()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&gt;&gt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">system_clock</span><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">tp</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Behaves as a formatted input function. After constructing a sentry object, if the sentry converts to true, obtains a <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">time_get</span></code> facet from <code class="computeroutput"><span class="identifier">is</span></code>, and obtains a formatting string in the same manner as described for insertion operator. Extract a <code class="computeroutput"><span class="identifier">tm</span></code> using the supplied formatting string, or if empty, defaulted as described for the insertion operator. Note that extraction does not use the <a class="link" href="reference.html#chrono.reference.io.timezone_hpp.timezone" title="Scoped enum timezone"><code class="computeroutput"><span class="identifier">timezone</span></code></a> data stored in the <code class="computeroutput"><span class="identifier">is</span></code> for the defaulted string as the <a class="link" href="reference.html#chrono.reference.io.timezone_hpp.timezone" title="Scoped enum timezone"><code class="computeroutput"><span class="identifier">timezone</span></code></a> information is stored in the stream. </p> <p> Any <code class="computeroutput"><span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">system_clock</span><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;</span></code> inserted, and then extracted should result in an equal <code class="computeroutput"><span class="identifier">time_point</span><span class="special">&lt;</span><span class="identifier">system_clock</span><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;</span></code>, excepting any precision that did not get inserted. </p> <p> <span class="bold"><strong>Example:</strong></span> </p> <pre class="programlisting"><span class="keyword">void</span> <span class="identifier">test</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">system_clock</span><span class="special">::</span><span class="identifier">time_point</span> <span class="identifier">tp</span><span class="special">)</span> <span class="special">{</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">stringstream</span> <span class="identifier">s</span><span class="special">;</span> <span class="identifier">s</span> <span class="special">&lt;&lt;</span> <span class="identifier">tp</span><span class="special">;</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">system_clock</span><span class="special">::</span><span class="identifier">time_point</span> <span class="identifier">tp2</span><span class="special">;</span> <span class="identifier">s</span> <span class="special">&gt;&gt;</span> <span class="identifier">tp2</span><span class="special">;</span> <span class="identifier">assert</span><span class="special">(</span><span class="identifier">tp</span> <span class="special">==</span> <span class="identifier">tp2</span><span class="special">);</span> <span class="special">}</span> </pre> <p> <span class="bold"><strong>Returns:</strong></span> is </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_io_hpp.streams.other_clocks"></a><a class="link" href="reference.html#chrono.reference.io.time_point_io_hpp.streams.other_clocks" title="Other Clocks">Other Clocks</a> </h6></div></div></div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_io_hpp.streams.other_clocks.op_out"></a><a class="link" href="reference.html#chrono.reference.io.time_point_io_hpp.streams.other_clocks.op_out" title="Non Member Function operator&lt;&lt;()">Non Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">&lt;&lt;()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&lt;&lt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">os</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_point</span><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">tp</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Behaves as a formatted output function. After constructing a <code class="computeroutput"><span class="identifier">sentry</span></code> object, if the <code class="computeroutput"><span class="identifier">sentry</span></code> converts to <code class="computeroutput"><span class="keyword">true</span></code>, calls to <code class="computeroutput"><span class="identifier">facet</span><span class="special">.</span><span class="identifier">put</span><span class="special">(</span><span class="identifier">os</span><span class="special">,</span><span class="identifier">os</span><span class="special">,</span><span class="identifier">os</span><span class="special">.</span><span class="identifier">fill</span><span class="special">(),</span><span class="identifier">tp</span><span class="special">)</span></code> where <code class="computeroutput"><span class="identifier">facet</span></code> is the <code class="computeroutput"><span class="identifier">time_point_put</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span></code> facet associated to <code class="computeroutput"><span class="identifier">os</span></code> or a new created instance of the default <code class="computeroutput"><span class="identifier">time_point_put</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span></code> facet. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">os</span></code>. </p> <p> <span class="bold"><strong>Example:</strong></span> </p> <pre class="programlisting"><span class="number">22644271279698</span> <span class="identifier">nanoseconds</span> <span class="identifier">since</span> <span class="identifier">boot</span> </pre> </div> <div class="section"> <div class="titlepage"><div><div><h6 class="title"> <a name="chrono.reference.io.time_point_io_hpp.streams.other_clocks.op_in"></a><a class="link" href="reference.html#chrono.reference.io.time_point_io_hpp.streams.other_clocks.op_in" title="Non Member Function operator&gt;&gt;()">Non Member Function <code class="computeroutput"><span class="keyword">operator</span><span class="special">&gt;&gt;()</span></code></a> </h6></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&gt;&gt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">time_point</span><span class="special">&lt;</span><a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a><span class="special">,</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">Duration</span></code></a><span class="special">&gt;&amp;</span> <span class="identifier">tp</span><span class="special">);</span> </pre> <p> Extracts <code class="computeroutput"><span class="identifier">tp</span></code> from the stream <code class="computeroutput"><span class="identifier">is</span></code>. </p> <p> <span class="bold"><strong>Effects:</strong></span> Behaves as a formatted input function. After constructing a <code class="computeroutput"><span class="identifier">sentry</span></code> object, if the <code class="computeroutput"><span class="identifier">sentry</span></code> converts to <code class="computeroutput"><span class="keyword">true</span></code>, calls to <code class="computeroutput"><span class="identifier">facet</span><span class="special">.</span><span class="identifier">get</span><span class="special">(</span><span class="identifier">is</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;(),</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">tp</span><span class="special">)</span></code> where <code class="computeroutput"><span class="identifier">facet</span></code> is the <code class="computeroutput"><span class="identifier">time_point_get</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span></code> facet associated to <code class="computeroutput"><span class="identifier">is</span></code> or a new created instance of the default <code class="computeroutput"><span class="identifier">time_point_get</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span></code> facet. </p> <p> If any step fails, calls <code class="computeroutput"><span class="identifier">os</span><span class="special">.</span><span class="identifier">setstate</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">failbit</span> <span class="special">|</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span><span class="special">::</span><span class="identifier">badbit</span><span class="special">)</span></code>. </p> <p> <span class="bold"><strong>Returns:</strong></span> <code class="computeroutput"><span class="identifier">is</span></code>. </p> </div> </div> </div> </div> </div> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> <a name="chrono.reference.round"></a><a class="link" href="reference.html#chrono.reference.round" title="Chrono Rounding Utilities">Chrono Rounding Utilities</a> </h3></div></div></div> <div class="toc"><dl class="toc"> <dt><span class="section"><a href="reference.html#chrono.reference.round.floor_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">floor</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.round.round_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">round</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.round.ceil_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">ceil</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> </dl></div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.round.floor_hpp"></a><a class="link" href="reference.html#chrono.reference.round.floor_hpp" title="Header &lt;boost/chrono/floor.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">floor</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">To</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">To</span> <span class="identifier">floor</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">);</span> <span class="special">}</span> <span class="special">}</span> </pre> <p> This function round down the given parameter. </p> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.round.round_hpp"></a><a class="link" href="reference.html#chrono.reference.round.round_hpp" title="Header &lt;boost/chrono/round.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">round</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">To</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">To</span> <span class="identifier">round</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">);</span> <span class="special">}</span> <span class="special">}</span> </pre> <p> This function round to nearest, to even on tie the given parameter. </p> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.round.ceil_hpp"></a><a class="link" href="reference.html#chrono.reference.round.ceil_hpp" title="Header &lt;boost/chrono/ceil.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">ceil</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">To</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Period</span><span class="special">&gt;</span> <span class="identifier">To</span> <span class="identifier">ceil</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">Period</span><span class="special">&gt;&amp;</span> <span class="identifier">d</span><span class="special">);</span> <span class="special">}</span> <span class="special">}</span> </pre> <p> This function round up the given parameter. </p> </div> </div> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> <a name="chrono.reference.other_clocks"></a><a class="link" href="reference.html#chrono.reference.other_clocks" title="Other Clocks">Other Clocks</a> </h3></div></div></div> <div class="toc"><dl class="toc"> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">process_cpu_clocks</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.thread_clock_hpp">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">thread_clock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a></span></dt> </dl></div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.other_clocks.process_cpu_clocks_hpp"></a><a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp" title="Header &lt;boost/chrono/process_cpu_clocks.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">process_cpu_clocks</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.BOOST_CHRONO_HAS_PROCESS_CLOCKS">Macro <code class="computeroutput"><span class="identifier">BOOST_CHRONO_HAS_PROCESS_CLOCKS</span> </code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_real_cpu_clock">Class <code class="computeroutput"><span class="identifier">process_real_cpu_clock</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_user_cpu_clock">Class <code class="computeroutput"><span class="identifier">process_user_cpu_clock</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_system_cpu_clock">Class <code class="computeroutput"><span class="identifier">process_system_cpu_clock</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_cpu_clock">Class <code class="computeroutput"><span class="identifier">process_cpu_clock</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.times">Template Class <code class="computeroutput"><span class="identifier">process_times</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.times_io"><code class="computeroutput"><span class="identifier">process_times</span></code> Input/Output</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.times_duration_values"><code class="computeroutput"><span class="identifier">duration_values</span></code> Specialization for <code class="computeroutput"><span class="identifier">process_times</span><span class="special">&lt;&gt;</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.clock_string_process_real_cpu_clock"><code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">process_real_cpu_clock</span><span class="special">&gt;</span></code> Specialization</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.clock_string_process_user_cpu_clock"><code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">process_user_cpu_clock</span><span class="special">&gt;</span></code> Specialization</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.clock_string_process_system_cpu_clock"><code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">process_system_cpu_clock</span><span class="special">&gt;</span></code> Specialization</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.clock_string_process_cpu_clock"><code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">process_cpu_clock</span><span class="special">&gt;</span></code> Specialization</a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.times_numeric_limits"><code class="computeroutput"><span class="identifier">numeric_limits</span></code> Specialization for <code class="computeroutput"><span class="identifier">process_times</span><span class="special">&lt;&gt;</span></code></a></span></dt> </dl></div> <p> Knowing how long a program takes to execute is useful in both test and production environments. It is also helpful if such timing information is broken down into real (wall clock) time, CPU time spent by the user, and CPU time spent by the operating system servicing user requests. </p> <p> Process clocks don't include the time spent by the child process. </p> <pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">BOOST_CHRONO_HAS_PROCESS_CLOCKS</span> <span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="keyword">class</span> <span class="identifier">process_real_cpu_clock</span><span class="special">;</span> <span class="keyword">class</span> <span class="identifier">process_user_cpu_clock</span><span class="special">;</span> <span class="keyword">class</span> <span class="identifier">process_system_cpu_clock</span><span class="special">;</span> <span class="keyword">class</span> <span class="identifier">process_cpu_clock</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">process_times</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&lt;&lt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">os</span><span class="special">,</span> <span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&gt;&gt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">duration_values</span><span class="special">&lt;</span><span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;</span> <span class="special">&gt;;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">process_real_cpu_clock</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">&gt;;</span> <span class="keyword">struct</span> <span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">process_user_cpu_clock</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">&gt;;</span> <span class="keyword">struct</span> <span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">process_system_cpu_clock</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">&gt;;</span> <span class="keyword">struct</span> <span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">process_cpu_clock</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">&gt;;</span> <span class="special">}</span> <span class="special">}</span> <span class="keyword">namespace</span> <span class="identifier">std</span> <span class="special">{</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">&gt;</span> <span class="keyword">class</span> <span class="identifier">numeric_limits</span><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;</span> <span class="special">&gt;;</span> <span class="special">}</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.other_clocks.process_cpu_clocks_hpp.BOOST_CHRONO_HAS_PROCESS_CLOCKS"></a><a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.BOOST_CHRONO_HAS_PROCESS_CLOCKS" title="Macro BOOST_CHRONO_HAS_PROCESS_CLOCKS">Macro <code class="computeroutput"><span class="identifier">BOOST_CHRONO_HAS_PROCESS_CLOCKS</span> </code></a> </h5></div></div></div> <p> This macro is defined if the platform supports process clocks. </p> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.other_clocks.process_cpu_clocks_hpp.process_real_cpu_clock"></a><a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_real_cpu_clock" title="Class process_real_cpu_clock">Class <code class="computeroutput"><span class="identifier">process_real_cpu_clock</span></code></a> </h5></div></div></div> <p> <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_real_cpu_clock" title="Class process_real_cpu_clock"><code class="computeroutput"><span class="identifier">process_real_cpu_clock</span></code></a> satisfy the <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a> requirements. </p> <p> <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_real_cpu_clock" title="Class process_real_cpu_clock"><code class="computeroutput"><span class="identifier">process_real_cpu_clock</span></code></a> class provides access to the real process wall-clock steady clock, i.e. the real CPU-time clock of the calling process. The process relative current time can be obtained by calling <code class="computeroutput"><span class="identifier">process_real_cpu_clock</span><span class="special">::</span><span class="identifier">now</span><span class="special">()</span></code>. </p> <pre class="programlisting"><span class="keyword">class</span> <span class="identifier">process_real_cpu_clock</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">typedef</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration_typedefs" title="duration typedefs"><code class="computeroutput"><span class="identifier">nanoseconds</span></code></a> <span class="identifier">duration</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">::</span><span class="identifier">rep</span> <span class="identifier">rep</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">::</span><span class="identifier">period</span> <span class="identifier">period</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">chrono</span><span class="special">::</span><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><span class="identifier">process_real_cpu_clock</span><span class="special">&gt;</span> <span class="identifier">time_point</span><span class="special">;</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <span class="identifier">is_steady</span> <span class="special">=</span> <span class="keyword">true</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">time_point</span> <span class="identifier">now</span><span class="special">(</span> <span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">time_point</span> <span class="identifier">now</span><span class="special">(</span> <span class="identifier">system</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&amp;</span> <span class="identifier">ec</span> <span class="special">);</span> <span class="special">};</span> </pre> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.other_clocks.process_cpu_clocks_hpp.process_user_cpu_clock"></a><a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_user_cpu_clock" title="Class process_user_cpu_clock">Class <code class="computeroutput"><span class="identifier">process_user_cpu_clock</span></code></a> </h5></div></div></div> <p> <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_user_cpu_clock" title="Class process_user_cpu_clock"><code class="computeroutput"><span class="identifier">process_user_cpu_clock</span></code></a> satisfy the <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a> requirements. </p> <p> <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_user_cpu_clock" title="Class process_user_cpu_clock"><code class="computeroutput"><span class="identifier">process_user_cpu_clock</span></code></a> class provides access to the user CPU-time steady clock of the calling process. The process relative user current time can be obtained by calling <code class="computeroutput"><span class="identifier">process_user_cpu_clock</span><span class="special">::</span><span class="identifier">now</span><span class="special">()</span></code>. </p> <pre class="programlisting"><span class="keyword">class</span> <span class="identifier">process_user_cpu_clock</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">typedef</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration_typedefs" title="duration typedefs"><code class="computeroutput"><span class="identifier">nanoseconds</span></code></a> <span class="identifier">duration</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">::</span><span class="identifier">rep</span> <span class="identifier">rep</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">::</span><span class="identifier">period</span> <span class="identifier">period</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">chrono</span><span class="special">::</span><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><span class="identifier">process_user_cpu_clock</span><span class="special">&gt;</span> <span class="identifier">time_point</span><span class="special">;</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <span class="identifier">is_steady</span> <span class="special">=</span> <span class="keyword">true</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">time_point</span> <span class="identifier">now</span><span class="special">(</span> <span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">time_point</span> <span class="identifier">now</span><span class="special">(</span> <span class="identifier">system</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&amp;</span> <span class="identifier">ec</span> <span class="special">);</span> <span class="special">};</span> </pre> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.other_clocks.process_cpu_clocks_hpp.process_system_cpu_clock"></a><a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_system_cpu_clock" title="Class process_system_cpu_clock">Class <code class="computeroutput"><span class="identifier">process_system_cpu_clock</span></code></a> </h5></div></div></div> <p> <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_system_cpu_clock" title="Class process_system_cpu_clock"><code class="computeroutput"><span class="identifier">process_system_cpu_clock</span></code></a> satisfy the <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a> requirements. </p> <p> <a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_system_cpu_clock" title="Class process_system_cpu_clock"><code class="computeroutput"><span class="identifier">process_system_cpu_clock</span></code></a> class provides access to the system CPU-time steady clock of the calling process. The process relative system current time can be obtained by calling <code class="computeroutput"><span class="identifier">process_system_cpu_clock</span><span class="special">::</span><span class="identifier">now</span><span class="special">()</span></code>. </p> <pre class="programlisting"><span class="keyword">class</span> <span class="identifier">process_system_cpu_clock</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">typedef</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration_typedefs" title="duration typedefs"><code class="computeroutput"><span class="identifier">nanoseconds</span></code></a> <span class="identifier">duration</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">::</span><span class="identifier">rep</span> <span class="identifier">rep</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">::</span><span class="identifier">period</span> <span class="identifier">period</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">chrono</span><span class="special">::</span><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><span class="identifier">process_system_cpu_clock</span><span class="special">&gt;</span> <span class="identifier">time_point</span><span class="special">;</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <span class="identifier">is_steady</span> <span class="special">=</span> <span class="keyword">true</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">time_point</span> <span class="identifier">now</span><span class="special">(</span> <span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">time_point</span> <span class="identifier">now</span><span class="special">(</span> <span class="identifier">system</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&amp;</span> <span class="identifier">ec</span> <span class="special">);</span> <span class="special">};</span> </pre> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.other_clocks.process_cpu_clocks_hpp.process_cpu_clock"></a><a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.process_cpu_clock" title="Class process_cpu_clock">Class <code class="computeroutput"><span class="identifier">process_cpu_clock</span></code></a> </h5></div></div></div> <p> <code class="computeroutput"><span class="identifier">process_cpu_clock</span></code> can be considered as a <code class="computeroutput"><span class="identifier">tuple</span><span class="special">&lt;</span><span class="identifier">process_real_cpu_clock</span><span class="special">,</span> <span class="identifier">process_user_cpu_clock</span><span class="special">,</span> <span class="identifier">process_system_cpu_clock</span><span class="special">&gt;</span></code>. </p> <p> <code class="computeroutput"><span class="identifier">process_cpu_clock</span></code> provides a thin wrapper around the operating system's process time API. For POSIX-like systems, that's the times() function, while for Windows, it's the <code class="computeroutput"><span class="identifier">GetProcessTimes</span><span class="special">()</span></code> function. </p> <p> The process relative real, user and system current time can be obtained at once by calling <code class="computeroutput"><span class="identifier">process_clocks</span><span class="special">::</span><span class="identifier">now</span><span class="special">()</span></code>. </p> <pre class="programlisting"><span class="keyword">class</span> <span class="identifier">process_cpu_clock</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">typedef</span> <span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">nanoseconds</span><span class="special">::</span><span class="identifier">rep</span><span class="special">&gt;</span> <span class="identifier">times</span> <span class="special">;</span> <span class="keyword">typedef</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration" title="Class Template duration&lt;&gt;"><code class="computeroutput"><span class="identifier">duration</span></code></a><span class="special">&lt;</span><span class="identifier">times</span><span class="special">,</span> <span class="identifier">nano</span><span class="special">&gt;</span> <span class="identifier">duration</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">::</span><span class="identifier">rep</span> <span class="identifier">rep</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">::</span><span class="identifier">period</span> <span class="identifier">period</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">chrono</span><span class="special">::</span><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><span class="identifier">process_cpu_clock</span><span class="special">&gt;</span> <span class="identifier">time_point</span><span class="special">;</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <span class="identifier">is_steady</span> <span class="special">=</span> <span class="keyword">true</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">time_point</span> <span class="identifier">now</span><span class="special">(</span> <span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">time_point</span> <span class="identifier">now</span><span class="special">(</span> <span class="identifier">system</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&amp;</span> <span class="identifier">ec</span> <span class="special">);</span> <span class="special">};</span> </pre> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.other_clocks.process_cpu_clocks_hpp.times"></a><a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.times" title="Template Class process_times">Template Class <code class="computeroutput"><span class="identifier">process_times</span></code></a> </h5></div></div></div> <p> This class is the representation of the <code class="computeroutput"><span class="identifier">process_cpu_clock</span><span class="special">::</span><span class="identifier">duration</span></code> class. As such it needs to implements the arithmetic operators. </p> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">process_times</span> <span class="special">:</span> <span class="identifier">arithmetic</span><span class="special">&lt;</span><span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;,</span> <span class="identifier">multiplicative</span><span class="special">&lt;</span><span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;,</span> <span class="identifier">Rep</span><span class="special">,</span> <span class="identifier">less_than_comparable</span><span class="special">&lt;</span><span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="special">&gt;</span> <span class="special">&gt;</span> <span class="special">{</span> <span class="identifier">Rep</span> <span class="identifier">real</span><span class="special">;</span> <span class="comment">// real (i.e wall clock) time</span> <span class="identifier">Rep</span> <span class="identifier">user</span><span class="special">;</span> <span class="comment">// user cpu time</span> <span class="identifier">Rep</span> <span class="identifier">system</span><span class="special">;</span> <span class="comment">// system cpu time</span> <span class="identifier">times</span><span class="special">();</span> <span class="identifier">times</span><span class="special">(</span> <span class="identifier">process_real_cpu_clock</span><span class="special">::</span><span class="identifier">rep</span> <span class="identifier">r</span><span class="special">,</span> <span class="identifier">process_user_cpu_clock</span><span class="special">::</span><span class="identifier">rep</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">process_system_cpu_clock</span><span class="special">::</span><span class="identifier">rep</span> <span class="identifier">s</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep2</span><span class="special">&gt;</span> <span class="keyword">explicit</span> <span class="identifier">process_times</span><span class="special">(</span> <span class="identifier">Rep2</span> <span class="identifier">r</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep2</span><span class="special">&gt;</span> <span class="keyword">explicit</span> <span class="identifier">process_times</span><span class="special">(</span> <span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">operator</span> <span class="identifier">rep</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">==(</span><span class="identifier">process_times</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Rep2</span><span class="special">&gt;</span> <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">==(</span><span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">Rep2</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="identifier">times</span> <span class="keyword">operator</span><span class="special">+=(</span><span class="identifier">process_times</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="identifier">times</span> <span class="keyword">operator</span><span class="special">-=(</span><span class="identifier">process_times</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="identifier">times</span> <span class="keyword">operator</span><span class="special">*=(</span><span class="identifier">process_times</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="identifier">times</span> <span class="keyword">operator</span><span class="special">/=(</span><span class="identifier">process_times</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">&lt;(</span><span class="identifier">process_times</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="special">};</span> </pre> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.other_clocks.process_cpu_clocks_hpp.times_io"></a><a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.times_io" title="process_times Input/Output"><code class="computeroutput"><span class="identifier">process_times</span></code> Input/Output</a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&lt;&lt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">os</span><span class="special">,</span> <span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> Output each part separated by ';' and surrounded by '{', '}'. </p> <p> <span class="bold"><strong>Throws:</strong></span> None. </p> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="keyword">operator</span><span class="special">&gt;&gt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;&amp;</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Effects:</strong></span> overrides the value of rhs if the input stream has the format "{r;u;s}". Otherwise, set the input stream state as failbit | eofbit. </p> <p> <span class="bold"><strong>Throws:</strong></span> None. </p> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.other_clocks.process_cpu_clocks_hpp.times_duration_values"></a><a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.times_duration_values" title="duration_values Specialization for process_times&lt;&gt;"><code class="computeroutput"><span class="identifier">duration_values</span></code> Specialization for <code class="computeroutput"><span class="identifier">process_times</span><span class="special">&lt;&gt;</span></code></a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Rep</span><span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.traits.duration_values" title="Class Template duration_values"><code class="computeroutput"><span class="identifier">duration_values</span></code></a><span class="special">&lt;</span><span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="special">{</span> <span class="keyword">static</span> <span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;</span> <span class="identifier">zero</span><span class="special">();</span> <span class="keyword">static</span> <span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;</span> <span class="identifier">max</span><span class="special">();</span> <span class="keyword">static</span> <span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;</span> <span class="identifier">min</span><span class="special">();</span> <span class="special">};</span> </pre> <p> The <code class="computeroutput"><span class="identifier">times</span></code> specific functions <code class="computeroutput"><span class="identifier">zero</span><span class="special">()</span></code>, <code class="computeroutput"><span class="identifier">max</span><span class="special">()</span></code> and <code class="computeroutput"><span class="identifier">min</span><span class="special">()</span></code> uses the relative functions on the representation of each component. </p> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.other_clocks.process_cpu_clocks_hpp.clock_string_process_real_cpu_clock"></a><a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.clock_string_process_real_cpu_clock" title="clock_string&lt;process_real_cpu_clock&gt; Specialization"><code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">process_real_cpu_clock</span><span class="special">&gt;</span></code> Specialization</a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">process_real_cpu_clock</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">{</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">name</span><span class="special">();</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">since</span><span class="special">();</span> <span class="special">};</span> </pre> <p> <code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;&gt;::</span><span class="identifier">name</span><span class="special">()</span></code> returns "process_real_cpu_clock". </p> <p> <code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;&gt;::</span><span class="identifier">since</span><span class="special">()</span></code> returns " since process start-up" </p> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.other_clocks.process_cpu_clocks_hpp.clock_string_process_user_cpu_clock"></a><a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.clock_string_process_user_cpu_clock" title="clock_string&lt;process_user_cpu_clock&gt; Specialization"><code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">process_user_cpu_clock</span><span class="special">&gt;</span></code> Specialization</a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">process_user_cpu_clock</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">{</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">name</span><span class="special">();</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">since</span><span class="special">();</span> <span class="special">};</span> </pre> <p> <code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;&gt;::</span><span class="identifier">name</span><span class="special">()</span></code> returns "process_user_cpu_clock". </p> <p> <code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;&gt;::</span><span class="identifier">since</span><span class="special">()</span></code> returns " since process start-up" </p> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.other_clocks.process_cpu_clocks_hpp.clock_string_process_system_cpu_clock"></a><a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.clock_string_process_system_cpu_clock" title="clock_string&lt;process_system_cpu_clock&gt; Specialization"><code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">process_system_cpu_clock</span><span class="special">&gt;</span></code> Specialization</a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">process_system_cpu_clock</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">{</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">name</span><span class="special">();</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">since</span><span class="special">();</span> <span class="special">};</span> </pre> <p> <code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;&gt;::</span><span class="identifier">name</span><span class="special">()</span></code> returns "process_system_cpu_clock". </p> <p> <code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;&gt;::</span><span class="identifier">since</span><span class="special">()</span></code> returns " since process start-up" </p> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.other_clocks.process_cpu_clocks_hpp.clock_string_process_cpu_clock"></a><a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.clock_string_process_cpu_clock" title="clock_string&lt;process_cpu_clock&gt; Specialization"><code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">process_cpu_clock</span><span class="special">&gt;</span></code> Specialization</a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">process_cpu_clock</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">{</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">name</span><span class="special">();</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">since</span><span class="special">();</span> <span class="special">};</span> </pre> <p> <code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;&gt;::</span><span class="identifier">name</span><span class="special">()</span></code> returns "process_cpu_clock". </p> <p> <code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;&gt;::</span><span class="identifier">since</span><span class="special">()</span></code> returns " since process start-up" </p> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.other_clocks.process_cpu_clocks_hpp.times_numeric_limits"></a><a class="link" href="reference.html#chrono.reference.other_clocks.process_cpu_clocks_hpp.times_numeric_limits" title="numeric_limits Specialization for process_times&lt;&gt;"><code class="computeroutput"><span class="identifier">numeric_limits</span></code> Specialization for <code class="computeroutput"><span class="identifier">process_times</span><span class="special">&lt;&gt;</span></code></a> </h5></div></div></div> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">std</span> <span class="special">{</span> <span class="keyword">template</span> <span class="special">&lt;&gt;</span> <span class="keyword">class</span> <span class="identifier">numeric_limits</span><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;&gt;</span> <span class="special">{</span> <span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;</span> <span class="identifier">Res</span><span class="special">;</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keyword">bool</span> <span class="identifier">is_specialized</span> <span class="special">=</span> <span class="keyword">true</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">Res</span> <span class="identifier">min</span><span class="special">();</span> <span class="keyword">static</span> <span class="identifier">Res</span> <span class="identifier">max</span><span class="special">();</span> <span class="keyword">static</span> <span class="identifier">Res</span> <span class="identifier">lowest</span><span class="special">();</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keyword">int</span> <span class="identifier">digits</span><span class="special">;</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keyword">int</span> <span class="identifier">digits10</span><span class="special">;</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keyword">bool</span> <span class="identifier">is_signed</span> <span class="special">=</span> <span class="keyword">false</span><span class="special">;</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keyword">bool</span> <span class="identifier">is_integer</span> <span class="special">=</span> <span class="keyword">true</span><span class="special">;</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keyword">bool</span> <span class="identifier">is_exact</span> <span class="special">=</span> <span class="keyword">true</span><span class="special">;</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keyword">int</span> <span class="identifier">radix</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> <span class="special">};</span> <span class="special">}</span> </pre> <p> The <code class="computeroutput"><span class="identifier">process_times</span><span class="special">&lt;</span><span class="identifier">Rep</span><span class="special">&gt;</span></code> specialization functions <code class="computeroutput"><span class="identifier">min</span><span class="special">()</span></code>, <code class="computeroutput"><span class="identifier">max</span><span class="special">()</span></code> and <code class="computeroutput"><span class="identifier">lowest</span><span class="special">()</span></code> uses the relative functions on the representation of each component. </p> <p> Notes </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <code class="computeroutput"><span class="identifier">min</span><span class="special">()</span></code> returns the tuple of mins. </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">max</span><span class="special">()</span></code> returns the tuple of maxs. </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">lowest</span><span class="special">()</span></code> returns the tuple of lowests. </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">digits</span></code> is the sum of (binary) digits. </li> <li class="listitem"> <code class="computeroutput"><span class="identifier">digits10</span></code> is the sum of digits10s. </li> </ul></div> </div> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="chrono.reference.other_clocks.thread_clock_hpp"></a><a class="link" href="reference.html#chrono.reference.other_clocks.thread_clock_hpp" title="Header &lt;boost/chrono/thread_clock.hpp&gt;">Header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">thread_clock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code></a> </h4></div></div></div> <div class="toc"><dl class="toc"> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.thread_clock_hpp.BOOST_CHRONO_HAS_THREAD_CLOCK">Macro <code class="computeroutput"><span class="identifier">BOOST_CHRONO_HAS_THREAD_CLOCK</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.thread_clock_hpp.BOOST_CHRONO_THREAD_CLOCK_IS_STEADY">Macro <code class="computeroutput"><span class="identifier">BOOST_CHRONO_THREAD_CLOCK_IS_STEADY</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.thread_clock_hpp.thread_clock">Class <code class="computeroutput"><span class="identifier">thread_clock</span></code></a></span></dt> <dt><span class="section"><a href="reference.html#chrono.reference.other_clocks.thread_clock_hpp.clock_string_thread_clock"><code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">thread_clock</span><span class="special">&gt;</span></code> Specialization</a></span></dt> </dl></div> <p> Knowing the time a thread takes to execute is useful in both test and production environments. </p> <pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">BOOST_CHRONO_HAS_THREAD_CLOCK</span> <span class="preprocessor">#define</span> <span class="identifier">BOOST_CHRONO_THREAD_CLOCK_IS_STEADY</span> <span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span> <span class="keyword">class</span> <span class="identifier">thread_clock</span><span class="special">;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">thread_clock</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">&gt;;</span> <span class="special">}</span> <span class="special">}</span> </pre> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.other_clocks.thread_clock_hpp.BOOST_CHRONO_HAS_THREAD_CLOCK"></a><a class="link" href="reference.html#chrono.reference.other_clocks.thread_clock_hpp.BOOST_CHRONO_HAS_THREAD_CLOCK" title="Macro BOOST_CHRONO_HAS_THREAD_CLOCK">Macro <code class="computeroutput"><span class="identifier">BOOST_CHRONO_HAS_THREAD_CLOCK</span></code></a> </h5></div></div></div> <p> This macro is defined if the platform supports thread clocks. </p> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.other_clocks.thread_clock_hpp.BOOST_CHRONO_THREAD_CLOCK_IS_STEADY"></a><a class="link" href="reference.html#chrono.reference.other_clocks.thread_clock_hpp.BOOST_CHRONO_THREAD_CLOCK_IS_STEADY" title="Macro BOOST_CHRONO_THREAD_CLOCK_IS_STEADY">Macro <code class="computeroutput"><span class="identifier">BOOST_CHRONO_THREAD_CLOCK_IS_STEADY</span></code></a> </h5></div></div></div> <p> This macro is defined if the platform has a thread clock. Its value is true if it is steady and false otherwise. </p> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.other_clocks.thread_clock_hpp.thread_clock"></a><a class="link" href="reference.html#chrono.reference.other_clocks.thread_clock_hpp.thread_clock" title="Class thread_clock">Class <code class="computeroutput"><span class="identifier">thread_clock</span></code></a> </h5></div></div></div> <p> <a class="link" href="reference.html#chrono.reference.other_clocks.thread_clock_hpp.thread_clock" title="Class thread_clock"><code class="computeroutput"><span class="identifier">thread_clock</span></code></a> satisfy the <a class="link" href="reference.html#chrono.reference.cpp0x.clock" title="Clock Requirements"><code class="computeroutput"><span class="identifier">Clock</span></code></a> requirements. </p> <p> <a class="link" href="reference.html#chrono.reference.other_clocks.thread_clock_hpp.thread_clock" title="Class thread_clock"><code class="computeroutput"><span class="identifier">thread_clock</span></code></a> class provides access to the real thread wall-clock, i.e. the real CPU-time clock of the calling thread. The thread relative current time can be obtained by calling <code class="computeroutput"><span class="identifier">thread_clock</span><span class="special">::</span><span class="identifier">now</span><span class="special">()</span></code>. </p> <pre class="programlisting"><span class="keyword">class</span> <span class="identifier">thread_clock</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="keyword">typedef</span> <a class="link" href="reference.html#chrono.reference.cpp0x.duration_hpp.duration_typedefs" title="duration typedefs"><code class="computeroutput"><span class="identifier">nanoseconds</span></code></a> <span class="identifier">duration</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">::</span><span class="identifier">rep</span> <span class="identifier">rep</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">duration</span><span class="special">::</span><span class="identifier">period</span> <span class="identifier">period</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">chrono</span><span class="special">::</span><a class="link" href="reference.html#chrono.reference.cpp0x.time_point_hpp.time_point" title="Class template time_point&lt;&gt;"><code class="computeroutput"><span class="identifier">time_point</span></code></a><span class="special">&lt;</span><span class="identifier">thread_clock</span><span class="special">&gt;</span> <span class="identifier">time_point</span><span class="special">;</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <span class="identifier">is_steady</span> <span class="special">=</span> <span class="identifier">BOOST_CHRONO_THREAD_CLOCK_IS_STEADY</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">time_point</span> <span class="identifier">now</span><span class="special">(</span> <span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">time_point</span> <span class="identifier">now</span><span class="special">(</span> <span class="identifier">system</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&amp;</span> <span class="identifier">ec</span> <span class="special">);</span> <span class="special">};</span> </pre> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="chrono.reference.other_clocks.thread_clock_hpp.clock_string_thread_clock"></a><a class="link" href="reference.html#chrono.reference.other_clocks.thread_clock_hpp.clock_string_thread_clock" title="clock_string&lt;thread_clock&gt; Specialization"><code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">thread_clock</span><span class="special">&gt;</span></code> Specialization</a> </h5></div></div></div> <pre class="programlisting"><span class="preprocessor">#if</span> <span class="identifier">defined</span><span class="special">(</span><span class="identifier">BOOST_CHRONO_HAS_THREAD_CLOCK</span><span class="special">)</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">clock_string</span><span class="special">&lt;</span><span class="identifier">thread_clock</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">{</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">name</span><span class="special">();</span> <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="identifier">since</span><span class="special">();</span> <span class="special">};</span> <span class="preprocessor">#endif</span> </pre> <p> <code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;&gt;::</span><span class="identifier">name</span><span class="special">()</span></code> returns "thread_clock". </p> <p> <code class="computeroutput"><span class="identifier">clock_string</span><span class="special">&lt;&gt;::</span><span class="identifier">since</span><span class="special">()</span></code> returns " since thread start-up" </p> </div> </div> </div> </div> <table xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> file LICENSE_1_0.txt or copy at <a href="path_to_url" target="_top">path_to_url </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="users_guide.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../chrono.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="appendices.html"><img src="../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> ```
```xml // See LICENSE in the project root for license information. import type * as ts from 'typescript'; import type * as tsdoc from '@microsoft/tsdoc'; import type { INodePackageJson } from '@rushstack/node-core-library'; /** * Constructor options for WorkingPackage */ export interface IWorkingPackageOptions { packageFolder: string; packageJson: INodePackageJson; entryPointSourceFile: ts.SourceFile; } /** * Information about the working package for a particular invocation of API Extractor. * * @remarks * API Extractor tries to model the world as a collection of NPM packages, such that each * .d.ts file belongs to at most one package. When API Extractor is invoked on a project, * we refer to that project as being the "working package". There is exactly one * "working package" for the duration of this analysis. Any files that do not belong to * the working package are referred to as "external": external declarations belonging to * external packages. * * If API Extractor is invoked on a standalone .d.ts file, the "working package" may not * have an actual package.json file on disk, but we still refer to it in concept. */ export class WorkingPackage { /** * Returns the folder for the package.json file of the working package. * * @remarks * If the entry point is `C:\Folder\project\src\index.ts` and the nearest package.json * is `C:\Folder\project\package.json`, then the packageFolder is `C:\Folder\project` */ public readonly packageFolder: string; /** * The parsed package.json file for the working package. */ public readonly packageJson: INodePackageJson; /** * The entry point being processed during this invocation of API Extractor. * * @remarks * The working package may have multiple entry points; however, today API Extractor * only processes a single entry point during an invocation. This will be improved * in the future. */ public readonly entryPointSourceFile: ts.SourceFile; /** * The `@packageDocumentation` comment, if any, for the working package. */ public tsdocComment: tsdoc.DocComment | undefined; /** * Additional parser information for `WorkingPackage.tsdocComment`. */ public tsdocParserContext: tsdoc.ParserContext | undefined; public constructor(options: IWorkingPackageOptions) { this.packageFolder = options.packageFolder; this.packageJson = options.packageJson; this.entryPointSourceFile = options.entryPointSourceFile; } /** * Returns the full name of the working package. */ public get name(): string { return this.packageJson.name; } } ```
Jane Frazier (or Fraser; January 1, 1735 – April 14, 1815) was a woman captured by Native Americans in the 18th century. She lived in a log house built in 1754 just beyond the Cumberland, Province of Maryland city limits. On October 1, 1755, while returning to her home from the Fort Cumberland Trading Post several miles away, Jane was captured by Native Americans and taken to the Miami River in Ohio. She escaped and returned 18 months later to learn that her husband John had remarried because he thought that she was dead. Jane's husband took her back and sent his second wife home to her father. Ruby Frazier Frey, a descendant, wrote a book called Red Morning telling of Jane's experiences. The Frazier house was destroyed in the 1960s, but a marker designates its location. The former Jane Frazier house was on Route 51, Cumberland, Maryland. Jane Frazier (formerly Jane Bell and Jane McClain) was born January 1, 1735, in Winchester, Virginia, and died April 14, 1815, in Schellsburg, Bedford County, Pennsylvania. In 1754 she married John Fraser (born in 1721 in the Highlands of Scotland, died April 16, 1773, in Bedford, Pennsylvania) and moved to Tibbitts Creek in Maryland. In 1759, John and Jane Fraser moved near Fort Bedford. They had eight children: Benjamin, Margaret, William, James, Jane, Catherine, Mary, and Amelia. After the death of John Fraser, Jane married Richard DeKapt (which became Dunlap) and had one daughter: Agnes. References Edward C. Papenfuse et al., Maryland: A New Guide to the Old Line State, Johns Hopkins University 1999, . Ruby Frazier Frey, Red Morning, G.P. Putnam's Sons 1946, ASIN B0007DQ41Y, LC Control Number 46006088. "The Old Pike Post", Genealogical Society of Allegany County, Maryland, Vol. 16, No. 3 September 1999. 1735 births 1815 deaths 18th-century American women Captives of Native Americans Cumberland, Maryland People from Cumberland, Maryland People of colonial Maryland
```elixir [ inputs: [ "{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}", "examples/*/{config,lib,priv}/*.ex" ], import_deps: [:protobuf], locals_without_parens: [rpc: 3, intercept: 1, intercept: 2, run: 1, run: 2], export: [ locals_without_parens: [rpc: 3, intercept: 1, intercept: 2, run: 1, run: 2] ] ] ```
Gay Alcorn is an Australian journalist and newspaper editor. She was appointed editor of The Age in September 2020 and stepped down in December 2022. Her sister, Margo Kingston, is also a journalist. Career Alcorn studied arts and law at the University of Queensland. She began her career in journalism as a cadet with the Courier-Mail before moving to Melbourne. In Melbourne, Alcorn joined The Sunday Age newspaper before it launched in 1989 and worked in the newsroom across The Age for 20 years. From 1999 to 2002, she was based in Washington, D.C. as a foreign correspondent for The Age and The Sydney Morning Herald where she covered the 2000 Bush-Gore presidential election and the September 11 attacks. During her time at The Age and SMH Alcorn won three Walkley Awards for news and feature writing. She served as deputy editor of The Age from 2006 to 2008 and then as editor of The Sunday Age until 2012. She left the editorial post to return to a writing role and in 2013 launched and edited The Conversation’s Election FactCheck for the Australian federal election. In 2014 Alcorn joined Guardian Australia as their Melbourne editor, and opened their Melbourne offices. In September 2020, it was announced that Alcorn would succeed Alex Lavelle as editor of The Age with effect from 28 September. She is the first woman in the newspaper's 165-year history to hold the position. She decided to step down from her role as editor of The Age in December 2022 to take care of her unwell husband. Awards and honours Walkley Award for Best Coverage of a Current Story (Print) 1996 Walkley Award for Newspaper Feature Writing (Print) 1999 Walkley Award for Newspaper Feature Writing (Print) (with Malcolm Schmidtke & Liz Minchin) 2004 Keith Dunstan Quill Award for Commentary 2017 References Living people Year of birth missing (living people) Australian newspaper editors The Age (Melbourne) people Australian foreign correspondents Australian journalists University of Queensland alumni Walkley Award winners
```javascript // flow-typed signature: c92dd1747a56d4ea6f16e03d1cffccdf // flow-typed version: <<STUB>>/apollo-cache-inmemory_v^1.1.5/flow_v0.63.1 /** * This is an autogenerated libdef stub for: * * 'apollo-cache-inmemory' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the * community by sending a pull request to: * path_to_url */ declare module 'apollo-cache-inmemory' { declare module.exports: any; } /** * We include stubs for each file inside this npm package in case you need to * require those files directly. Feel free to delete any files that aren't * needed. */ declare module 'apollo-cache-inmemory/lib/bundle.umd' { declare module.exports: any; } declare module 'apollo-cache-inmemory/lib/fragmentMatcher' { declare module.exports: any; } declare module 'apollo-cache-inmemory/lib/fragmentMatcherIntrospectionQuery' { declare module.exports: any; } declare module 'apollo-cache-inmemory/lib/index' { declare module.exports: any; } declare module 'apollo-cache-inmemory/lib/inMemoryCache' { declare module.exports: any; } declare module 'apollo-cache-inmemory/lib/mapCache' { declare module.exports: any; } declare module 'apollo-cache-inmemory/lib/objectCache' { declare module.exports: any; } declare module 'apollo-cache-inmemory/lib/readFromStore' { declare module.exports: any; } declare module 'apollo-cache-inmemory/lib/recordingCache' { declare module.exports: any; } declare module 'apollo-cache-inmemory/lib/types' { declare module.exports: any; } declare module 'apollo-cache-inmemory/lib/writeToStore' { declare module.exports: any; } declare module 'apollo-cache-inmemory/rollup.config' { declare module.exports: any; } // Filename aliases declare module 'apollo-cache-inmemory/lib/bundle.umd.js' { declare module.exports: $Exports<'apollo-cache-inmemory/lib/bundle.umd'>; } declare module 'apollo-cache-inmemory/lib/fragmentMatcher.js' { declare module.exports: $Exports<'apollo-cache-inmemory/lib/fragmentMatcher'>; } declare module 'apollo-cache-inmemory/lib/fragmentMatcherIntrospectionQuery.js' { declare module.exports: $Exports<'apollo-cache-inmemory/lib/fragmentMatcherIntrospectionQuery'>; } declare module 'apollo-cache-inmemory/lib/index.js' { declare module.exports: $Exports<'apollo-cache-inmemory/lib/index'>; } declare module 'apollo-cache-inmemory/lib/inMemoryCache.js' { declare module.exports: $Exports<'apollo-cache-inmemory/lib/inMemoryCache'>; } declare module 'apollo-cache-inmemory/lib/mapCache.js' { declare module.exports: $Exports<'apollo-cache-inmemory/lib/mapCache'>; } declare module 'apollo-cache-inmemory/lib/objectCache.js' { declare module.exports: $Exports<'apollo-cache-inmemory/lib/objectCache'>; } declare module 'apollo-cache-inmemory/lib/readFromStore.js' { declare module.exports: $Exports<'apollo-cache-inmemory/lib/readFromStore'>; } declare module 'apollo-cache-inmemory/lib/recordingCache.js' { declare module.exports: $Exports<'apollo-cache-inmemory/lib/recordingCache'>; } declare module 'apollo-cache-inmemory/lib/types.js' { declare module.exports: $Exports<'apollo-cache-inmemory/lib/types'>; } declare module 'apollo-cache-inmemory/lib/writeToStore.js' { declare module.exports: $Exports<'apollo-cache-inmemory/lib/writeToStore'>; } declare module 'apollo-cache-inmemory/rollup.config.js' { declare module.exports: $Exports<'apollo-cache-inmemory/rollup.config'>; } ```
```objective-c #ifndef CLI_APPLICATION_H #define CLI_APPLICATION_H #include "./args.h" #include <syncthingconnector/syncthingconnection.h> #include <syncthingconnector/syncthingconnectionsettings.h> #include <QObject> #include <tuple> namespace Cli { enum class OperationType { Status, PauseResume, WaitForIdle }; struct RelevantDir { explicit RelevantDir(const Data::SyncthingDir *dir = nullptr, const QString &subDir = QString()); operator bool() const; void notifyAboutRescan() const; const Data::SyncthingDir *dirObj; QString subDir; }; inline RelevantDir::RelevantDir(const Data::SyncthingDir *dir, const QString &subDir) : dirObj(dir) , subDir(subDir) { } inline RelevantDir::operator bool() const { return dirObj != nullptr; } class Application : public QObject { Q_OBJECT public: Application(); ~Application() override; int exec(int argc, const char *const *argv); private Q_SLOTS: void handleStatusChanged(Data::SyncthingStatus newStatus); void handleResponse(); void handleError( const QString &message, Data::SyncthingErrorCategory category, int networkError, const QNetworkRequest &request, const QByteArray &response); void findRelevantDirsAndDevs(OperationType operationType); bool findPwd(); private: int loadConfig(); bool waitForConnected(int timeout = 2000); bool waitForConfig(int timeout = 2000); bool waitForConfigAndStatus(int timeout = 2000); void requestLog(const ArgumentOccurrence &); void requestShutdown(const ArgumentOccurrence &); void requestRestart(const ArgumentOccurrence &); void requestRescan(const ArgumentOccurrence &occurrence); void requestRescanAll(const ArgumentOccurrence &); void requestPauseResume(bool pause); void printDir(const RelevantDir &relevantDir) const; void printDev(const Data::SyncthingDev *dev) const; void printStatus(const ArgumentOccurrence &); static void printLog(const std::vector<Data::SyncthingLogEntry> &logEntries); void printConfig(const ArgumentOccurrence &); void editConfig(const ArgumentOccurrence &); QByteArray editConfigViaEditor() const; QByteArray editConfigViaScript() const; void waitForIdle(const ArgumentOccurrence &); bool checkWhetherIdle() const; void checkPwdOperationPresent(const ArgumentOccurrence &occurrence); void printPwdStatus(const ArgumentOccurrence &occurrence); void requestRescanPwd(const ArgumentOccurrence &occurrence); void requestPausePwd(const ArgumentOccurrence &occurrence); void requestResumePwd(const ArgumentOccurrence &occurrence); void initDirCompletion(Argument &arg, const ArgumentOccurrence &); void initDevCompletion(Argument &arg, const ArgumentOccurrence &); RelevantDir findDirectory(const QString &dirIdentifier); Args m_args; Data::SyncthingConnectionSettings m_settings; Data::SyncthingConnection m_connection; size_t m_expectedResponse; bool m_preventDisconnect; bool m_callbacksInvoked; bool m_requiresMainEventLoop; std::vector<RelevantDir> m_relevantDirs; std::vector<const Data::SyncthingDev *> m_relevantDevs; RelevantDir m_pwd; QByteArray m_dirCompletion; QByteArray m_devCompletion; int m_idleDuration; int m_idleTimeout; bool m_argsRead; }; } // namespace Cli #endif // CLI_APPLICATION_H ```
The John Ericsson-class monitors were a group of five iron-hulled monitors; four were built for the Royal Swedish Navy and one for the Royal Norwegian Navy in the mid to late 1860s. They were designed under the supervision of the Swedish-born inventor, John Ericsson, and built in Sweden. Generally the monitors were kept in reserve for the majority of the year and were only commissioned for several during the year. The ships made one foreign visit to Russia (visits to Norway did not count as foreign as that country was in a personal union with Sweden) in 1867, but remained in Swedish or Norwegian waters for the rest of their careers. Two of the monitors, Thordon and Mjølner, ran aground, but were salvaged and repaired. Most of the monitors were reconstructed between 1892 and 1905 with more modern guns, but one was scrapped instead as it was not thought cost-effective to rebuild such an old ship. The surviving ships were mobilized during World War I and sold for scrap afterwards. Design and description The John Ericsson-class ironclads were designed to meet the need of the Swedish and Norwegian Navies for small, shallow-draft armored ships capable of defending their coastal waters. The standoff between and the much larger during the Battle of Hampton Roads in early 1862 roused much interest in Sweden in this new type of warship as it seemed ideal for coastal defense duties. A parliamentary committee set up earlier to investigate the state of the Swedish navy had already concluded that the existing fleet was obsolete and new construction would have to be steam-powered and built of iron. John Ericsson, designer and builder of the Monitor, had been born in Sweden, although he had become an American citizen in 1848, and offered to share his design with the Swedes. In response they sent Lieutenant John Christian d'Ailly to the United States to study monitor design and construction under Ericsson. D'Ailly arrived in July 1862 and toured rolling mills, gun foundries, and visited several different ironclads under construction. He returned to Sweden in 1863 having completed the drawings of a Monitor-type ship under Ericsson's supervision. The ships measured long overall, with a beam of . They had a draft of and displaced . The ships were divided into nine main compartments by eight watertight bulkheads. Over time a flying bridge and, later, a full superstructure, was added to each ship between the gun turret and the funnel. Initially their crew numbered 80 officers and men, but this increased to 104 as the ships were modified with additional weapons. Loke, the last-built ship in the class, was somewhat larger than her half-sisters. She was long overall, with a maximum beam of . The ship drew and displaced fully loaded. Propulsion The John Ericsson-class ships had one twin-cylinder vibrating lever steam engines, designed by Ericsson himself, driving a single four-bladed, propeller. Their engines were powered by four fire-tube boilers at a working pressure of . The engines produced a total of which gave the monitors a maximum speed of in calm waters. The ships carried of coal, enough for six day's steaming. Armament The lead ship, John Ericsson, carried a pair of smoothbore Dahlgren muzzleloaders, donated by John Ericsson, in her turret. Each gun weighed approximately and fired solid shot and a explosive shell. The massive shells took 5–6 minutes to reload. They had a maximum muzzle velocity of . These guns were designated as the M/65 by the Swedes, but they were not satisfied with their performance and replaced them with other guns in the later ships. Thordön and Tirfing were briefly armed with a pair of M/66 smoothbore guns before being rearmed in 1872–73 with two M/69 rifled breech loaders, derived from a French design. Loke, being the last ship delivered, was equipped with these guns while building. They weighed and fired projectiles at a muzzle velocity of . At their maximum elevation of 7.5° they had a range of . An improved version was developed in the 1870s and John Ericsson was fitted with them when she was overhauled in 1881. The guns were heavier, , but had a higher muzzle velocity of . Coupled with the increased elevation of 11.29°, this gave them a range of . The other monitors gradually received their guns: Thordön in 1882, Tirfing in 1885 and Loke in 1890. In 1877 each monitor received a pair of 10-barreled M/75 machine guns designed by Helge Palmcrantz. Each machine gun weighed and had a rate of fire of 500 rounds per minute. Its projectiles had a muzzle velocity of and a maximum range of . These guns were replaced during the 1880s by the 4-barreled M/77 Nordenfeldt gun, which was an enlarged version of Palmcrantz's original design. The gun had a rate of fire of 120 rounds per minute and each round had a muzzle velocity of . Its maximum range was . Armor The John Ericsson-class ships had a complete waterline armor belt of wrought iron that was high and thick. The armor consisted of five plates backed by of wood. The lower edge of this belt was thick as it was only three plates thick. The maximum thickness of the armored deck was in two layers. The gun turret's armor consisted of twelve layers of iron, totaling in thickness on the first four monitors. The armor on Lokes turret was reinforced to a thickness of on its face and on its sides. The inside of the turret was lined with mattresses to catch splinters. The base of the turret was protected with a glacis, high, and the turret's roof was 127 millimeters thick. The conning tower was positioned on top of the turret and its sides were ten layers () thick. The funnel was protected by six layers of armor with a total thickness of up to half its height. Construction Service In July 1867 Crown Prince Oscar, later King Oscar II, inspected John Ericsson, Thordön, Tirfing, the steam frigates Thor and , and the Norwegian monitor in the Stockholm archipelago before they departed for port visits in Helsingfors, later known as Helsinki, and Kronstadt in August, where they were visited by Grand Duke Konstantin Nikolayevich of Russia, head of the Imperial Russian Navy. These were the only foreign visits ever made by the three Swedish monitors. Generally the monitors were kept in reserve for the majority of the year; only being commissioned for two to four months during the summer and fall. John Ericsson, named for the inventor, kept up the pattern between 1865 and 1873, but remained in reserve afterward until 1882. She was rearmed with the 240-millimeter M/76 guns in 1881 and her original Dahlgren guns became part of the Ericsson monument at Filipstad. The ship was reactivated in 1882 and 1883, but only sporadically thereafter. John Ericsson was reconstructed between 1892 and 1895; her gun turret was fixed in place and modified to serve as a barbette for her two new Bofors M/89 guns. The guns could depress to −5° and elevate to +13°, and they had a firing arc of 290°. Two Nordenfeldt M/92 quick-firing guns were also added on the superstructure. The ship's boilers were replaced by new cylindrical ones that had a working pressure of and John Ericsson reached on sea trials on 14 May 1901. During the early 1900s the two 25-millimeter machine guns were removed and four, later six, more 57-millimeter guns added to the superstructure. The ship was assigned to the Karlskrona local defense force during 1913–18, and she was sold to the Gotland Cement Company () in November 1919. The company converted her to a barge and used her for the next forty years; her final fate is unknown. Thordön (later spelled Tordön) was laid up in reserve in 1868 and 1869. She was rearmed with 240-millimeter M/69 guns (serial numbers 5 and 6) in 1872, but was laid up again from 1874 to 1882. The ship ran aground and sank on Lilla Rimö Island, off Norrköping, on 23 July 1883. She was salvaged on 4 August and managed to proceed under her own power to Karlskrona Naval Dockyard for repairs. The subsequent court-martial ordered the ship's captain to pay for the costs of the salvage and repairs, despite a misplaced buoy that caused the ship to ground. She was recommissioned in 1885 and 1888–89 before being placed back in reserve. Tordön was reconstructed in 1903–05; she received a pair of new Bofors M/94 guns that were given elevation limits of −7° and +15°. The ship also received eight 57-millimeter guns and new boilers. She was reactivated during World War I and assigned to the Göteborg local defense flotilla. Thordön was decommissioned in 1922 and sold the following year. Her new owner converted her into a barge and used her in Stockholm harbor. Tirfing was commissioned less often than the first two monitors. She was only active in 1867, 1873, 1880, 1885 and 1888–89 before she was mobilized for World War I. Tirfing received her 240-millimeter M/69 guns in 1873. The ship was reconstructed at the same time and in a similar manner as was Tordön, except that she received eight M/95 quick-firing guns taken from the and s. Tirfing joined her sister Thordön as part of the Göteborg flotilla during World War I and shared her fate. Loke made only seven cruises before she was finally placed in reserve in late 1880. Funds were requested to rebuild her in 1903 and 1908, but they were refused. She was decommissioned on 21 August 1908 and advertised for sale. The details of her fate are unknown, but presumably she was sold and scrapped. The Norwegians had built one monitor-type ship of their own, , in 1865, and laid down several others, but the Norwegian Parliament authorized construction of Mjølner in 1867 in Sweden at the cost of 1,102,000 Norwegian krone. She was armed with a pair of steel Armstrong rifled muzzle-loading guns in her turret as well as a gun. The ship ran aground in 1869, but was only lightly damaged. She was visited by King Charles XV of Sweden on one occasion when visiting one of Sweden's west-coast ports in the early 1870s. Mjølner was reconstructed in 1897: her turret was converted to a barbette and her main guns were replaced by a pair of Cockerill 120-millimeter quick-firing guns. In addition two and two Cockerill guns were mounted in her superstructure as well as two 37-millimeter Hotchkiss 5-barrel revolving guns. Mjølner spent most of her career in Oslo Fjord and was scrapped in 1909. See also List of ironclads Notes Footnotes References Ships built in Norrköping
Mozammel Hossain Lalu (; 1942 – 1 September 2014) was a Bangladeshi politician. He was elected a Jatiya Sangsad member from Kurigram-3 (Ulipur-Chilmari-Rajarhat) constituency winning the September 1996 by-election. Early life and family Lalu was born in the early 1940s to a Bengali Muslim family with roots in Dinhata in present-day India. His parents were Mokbul Hossain and Majida Khatun. Mokbul was a lawyer and served as a minister of the erstwhile Maharaja of Cooch Behar. Lalu had eight siblings including the former President of Bangladesh Hussain Muhammad Ershad, politician GM Quader and Merina Rahman. Lalu's son, Hossain Mokbul Shahriar, is a former Jatiya Sangsad member from Rangpur-1. Career Lalu served as the assistant general manager of the state-run Janata Bank. Following the arrest of his elder brother Hussain Muhammad Ershad in 1990, Lalu founded and chaired the Free Ershad Council. Lalu was also the cooperative advisor for the Jatiya Party's Central Committee. References 2014 deaths Jatiya Party (Ershad) politicians 5th Jatiya Sangsad members 1942 births Bangladeshi people of Indian descent People from Cooch Behar district 20th-century Bengalis 21st-century Bengalis Wakil family
Lee Raymond Brooks (born February 26, 1983, in Acton, Massachusetts, U.S.) is a composer and sound designer for film. Biography Lee Brooks is a composer for stage, film and television. He has scored original music and created sound design for a variety of films, working with talent such as Isabella Rossellini, Kronos Quartet, Ethel and the Czech Philharmonic Chamber Orchestra. His work was recognized by the Student Academy Awards (This is not a Picture), and by the Mid-Atlantic Film Festival for Best Dramatic Score (Empty). Since 2009, he has composed music for the Oslo Freedom Forum, a conference about human rights with an "ongoing campaign to defend and promote human freedom around the world." In 2009, he scored the theme to open the conference and introduce speakers. For 2010, in addition to a new version of the theme, he was commissioned to write his second and third string quartets, recorded by Ethel and presented during the conference. He has worked as a Music Producer at Grey Advertising in New York since 2007. Credits Filmography The following list consists of select films for which Brooks provided the sound design, score and/or songs. Those films for which he provided sound design are in bold. 2000s Outside the Box (2002) The Rub (2002) Janey's Curse (2003) One Moment, One Day (2003) Sidestreet (2003) - Theme Song "Down She Goes" Something and Denodra (2003) - Arrangement of song "Man Out There" My Big, Fat Martian Wedding (2004) NYU Tonight News Theme (2004) This is not a Picture (2004) AfterWords (2005) The Bet (2005) Brake (2005) Bummed (2005) A Burlap Christmas (2006) Empty (2005) Oswald Cornelius' Last One-Night Stand (2005) The Time Machine (2006) The Wrath of Norm Polanski (2006) Always the Nice Ones (2007) Film School (2007) The Morning After (2007) 2081 (2009) Dead Fish (2008) Flat Love (2008) Holy Sapien (2008) Music videos 2000s "Check, Please" by Lee Brooks (2003) – actor Stage 2000s A Concert of Original Works (2005) A Chance to Breathe (2004) Performed by NASHA (Indian Fusion Dance Troupe) SEX: a.k.a. Wieners & Boobs (2004) NYC Stage Production of play by Joe Lo Truglio, Michael Showalter, and David Wain Lee Brooks: Presenting His Works for Stage and Screen (2005) References External links Official website American film score composers American male film score composers 1983 births Living people People from Acton, Massachusetts
```xml <clickhouse> <keeper_map_path_prefix>/test_keeper_map</keeper_map_path_prefix> </clickhouse> ```
The 2019 Bloc Québécois leadership election was initiated by the resignation of party leader Martine Ouellet in June 2018. While originally scheduled to be held on February 24, 2019 on a one member, one vote basis, Yves-François Blanchet, as the only candidate in the race following the nomination deadline of January 15, 2019, was officially acclaimed Leader of the Bloc Québécois on January 17, 2019. Background Ouellet got 32% support from a confidence vote of party members. She resigned on June 11, 2018. Seven out of ten Bloc Québécois caucus members left on February 28, 2018 and formed Québec debout, which was announced on May 9, 2018. On September 17, 2018, the party's five MPs rejoined the Bloc Québécois caucus. On June 13, 2018, Mario Beaulieu, MP for La Pointe-de-l'Île and president of the BQ since 2014, was appointed interim leader of the Bloc Québécois. Timeline June 4, 2018 - leader Martine Ouellet receives only 32% support in a party confidence vote. June 11, 2018 - Ouellet resigns. June 13, 2018 - Former leader Mario Beaulieu is chosen interim leader. January 15, 2019 - deadline for leadership candidates to file their nominations. January 17, 2019 - Yves-François Blanchet acclaimed as leader. Candidates Declared Yves-François Blanchet, former Quebec Minister of Sustainable Development, Environment, Wildlife and Parks (2012–2014) and MNA for Johnson (2012–2014) and Drummond (2008–2012). Declared candidacy November 26, 2018. Endorsed by nine of the Bloc's ten MPs, all but Terrebonne MP Michel Boudrias, including former interim leader Rhéal Fortin, former permanent/current interim leader Mario Beaulieu, and Louis Plamondon, the Dean of the House. Failed to qualify Christian Hébert, businessman, owner of the food company Domaine Hébert in Deschambault and 2018 Parti Québécois candidate in Portneuf. Hébert had announced his candidacy, though was not in the race by the nomination deadline of January 15, 2019, and it's unclear whether he withdrew or failed to qualify. Jean-Jacques Nantel, an engineer, attempted to join the race though did not meet the party's criteria. Declined Jean-Martin Aussant, former leader of Option nationale (2011–2013) and MNA for Nicolet-Yamaska (2008–2012) Xavier Barsalou-Duval, MP for Pierre-Boucher—Les Patriotes—Verchères (2015–present) Michel Boudrias, MP for Terrebonne (2015–present) Rhéal Fortin, MP for Rivière-du-Nord (2015–present), interim leader of the BQ (2015–2017), leader of Québec debout (2018) Marilène Gill, MP for Manicouagan (2015–present) Jean-François Lisée, former leader of the Parti Québécois (2016–2018), Quebec Minister of International Relations, the Francophonie, External Trade (2012–2014), and MNA for Rosemont (2012–2018) Simon Marcil, MP for Mirabel (2015–present) Monique Pauzé, MP for Repentigny (2015–present) Louis Plamondon, MP for Bécancour—Nicolet—Saurel (2015–present), Bas-Richelieu—Nicolet—Bécancour (2000-2015), Richelieu (1984-2000), BQ House Leader (1992-1993, 2011–2013, 2014–2015) Gabriel Ste-Marie, MP for Joliette (2015–present) Luc Thériault, MP for Montcalm (2015–present) References Bloc Québécois leadership elections Bloc Quebecois January 2019 events in Canada Bloc Québécois leadership election
```xml <Project> <!-- 'TargetPlatform*Version' for uap10.0 where TPMV isn't implied --> <PropertyGroup> <TargetPlatformVersion>$(TargetPlatformBaseVersion).$(TargetPlatformRevision).0</TargetPlatformVersion> <TargetPlatformMinVersion>$(TargetPlatformBaseVersion).$(TargetPlatformMinRevision).0</TargetPlatformMinVersion> <DebugType Condition="'$(DebugType)' == ''">Portable</DebugType> </PropertyGroup> <ItemGroup> <SDKReference Include="WindowsDesktop, Version=$(TargetPlatformVersion)" Condition="'$(UseWindowsDesktopSdk)' == 'true'"> <Name>Windows Desktop Extensions for the UWP</Name> </SDKReference> <SDKReference Include="WindowsMobile, Version=$(TargetPlatformVersion)" Condition="'$(UseWindowsMobileSdk)' == 'true'"> <Name>Windows Mobile Extensions for the UWP</Name> </SDKReference> </ItemGroup> </Project> ```
Stephen Andrew Panos (Greek: Στιβ Πάνος; born February 4, 1988) is a Greek-American former professional basketball player. At a height of 2.06 m (6'9") tall, he played at the power forward and center positions. College career After playing high school basketball at Highland High School, in Salt Lake City, Utah, Panos played college basketball at Weber State, from 2006 to 2010. Professional career Panos began his pro career with the Greek League club Kolossos in 2010. He moved to the Greek club Kavala in 2012. He joined the Greek club Trikala Aries in 2013. In 2014 he resigned with Trikala for a 1 year contract The Basketball Tournament In the summers of 2015 and 2017, Panos played in The Basketball Tournament, on ESPN, for The Wasatch Front (Weber State Alumni). He competed for the $2 million prize in 2017, and for The Wasatch Front, he scored 6 points in their first round loss to Team Challenge ALS, by a score of 97–81. References External links Official Twitter Account Eurobasket.com Profile Draftexpress.com Profile Greek Basket League Profile Balkan League Profile Weber State College Profile ESPN College Stats 1988 births Living people American men's basketball players American people of Greek descent Aries Trikala B.C. players Basketball players from Salt Lake City Centers (basketball) Greek men's basketball players Kavala B.C. players Kolossos Rodou B.C. players Power forwards (basketball) Promitheas Patras B.C. players Weber State Wildcats men's basketball players
```go // // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // Package testutil provides test utility functions. package testutil import ( "net/url" "runtime" "testing" "time" ) // TODO: improve this when we are able to know the schedule or status of target go-routine. func WaitSchedule() { time.Sleep(10 * time.Millisecond) } func MustNewURLs(t *testing.T, urls []string) []url.URL { if urls == nil { return nil } var us []url.URL for _, url := range urls { u := MustNewURL(t, url) us = append(us, *u) } return us } func MustNewURL(t *testing.T, s string) *url.URL { u, err := url.Parse(s) if err != nil { t.Fatalf("parse %v error: %v", s, err) } return u } // FatalStack helps to fatal the test and print out the stacks of all running goroutines. func FatalStack(t *testing.T, s string) { stackTrace := make([]byte, 8*1024) n := runtime.Stack(stackTrace, true) t.Error(string(stackTrace[:n])) t.Fatalf(s) } ```
Dubin's Lives is the seventh published novel by the American writer Bernard Malamud. The title character is a biographer working on a life of D. H. Lawrence. It first appeared in hardcover from the publisher Farrar, Straus and Giroux in 1979. Portions of the novel originally appeared, in somewhat different form, in The New Yorker, The Atlantic, and Playboy. It is still in print, Farrar, Straus and Giroux having reissued a paperback edition in 2003 with an Introduction by Thomas Mallon. Background Malamud began writing the novel in February 1973, and he completed it in August 1978. Parts of the novel were first published in The New Yorker and Playboy. Epigraphs The novel begins with two quotations. What demon possessed me that I behaved so well? – Thoreau Give me continence and chastity, but not yet. — Augustine of Hippo The first epigraph points to the notion that Dubin has written a biography of Thoreau and also alerts the reader to the moral complexities that the novel explores. The second connects the novel with themes of promiscuity and spiritual struggle for which Augustine is famous. Plot summary William Dubin of Vermont is living the comfortable life of an accomplished writer. Though his marriage to Kitty is slightly timeworn, it is stable and loving. While researching the biography of D. H. Lawrence, he meets twenty-three-year-old Fanny and begins an affair with her. Predictably, the consequences of this act rock Dubin's life and invite the reader to draw parallels with similar events in the lives of the writers Dubin is researching. Reception Over the years, Dubin's Lives has been well-received, and has consistently garnered attention and sales since it was published. As of 2017, the novel is still in print. Upon its publication, initial reviews were enthusiastic. Christopher Lehmann-Haupt of The New York Times concluded that it was "certainly Malamud’s best novel since The Assistant,"; and that maybe it was "the best he has written of all." References 1979 American novels Novels by Bernard Malamud Novels about writers Novels set in Vermont D. H. Lawrence Farrar, Straus and Giroux books
Rukminisha Vijaya (, ), is a Vaishnava work composed by the 16th-century Hindu, Madhava saint, Vadiraja Tirtha. It is an important work of Sanskrit literature, containing 19 chapters and 1,241 verses in various metres. The text is written in the Vaidarbhi style. Rukminisha Vijaya is a mahakavya, rendered in the kāvya style, narrating the life of Krishna from boyhood, and ending with his marriage with Rukmini, his chief consort. The book highlights the story of Krishna, as described in the 10th canto of the Bhagavata Purana. Analysis The Rukminisha Vijaya is noted as an exemplar of Dvaita philosophy, and its opposition of the Advaita doctrine. It describes the exploits of Krishna, whose "unquestioned supremacy" is represented by the saint Vadiraja. Quoting on the style of the work, Indologist B. N. Krishnamurti Sharma writes, "The descriptions are effective and natural. The style is deeply alliterative. Sense and sound match well and the imagery is fine and lofty". Contents The work begins with the compilation of a number of stotras, including ones dedicated to Krishna, who is referred to as the Paramatma, Hayagriva, Rukmini, who is described as Krishna's supreme beloved consort, and Bhudevi. The narrative form of the work begins with the slokas that describe the legend of Brahma praying to Vishnu for incarnating on earth as Krishna, and goes on to explain the story of Krishna, detailing his birth, his eulogies, the births of Balarama and Durga (Yogamaya), with the first canto ending with the departure of Krishna to Gokulam. The second canto entails slokas that begin with Krishna's entry into Gokulam, the blessings of Durga upon his parents, the reasons Krishna was born in a cowherd family, and the killing of Putana and Sakatasura, and their achievement of moksha. The third canto begins with the description of the slaying of Trinavarta, Yashoda's witnessing of Krishna's vishvarupa, the symbolic nature of Krishna's activities, the dalliances of Krishna and the milkmaids, the exaltations of his divine abilities, and ends with the subjugation of Kaliya. The fourth canto begins with Krishna's drinking of the forest fire, the slaying of Dhenukasura and other asuras, a description of various seasons, Krishna's mischief of stealing the milkmaids's clothes, and ends with Krishna lifting the mountain Govardhana. The next few cantos describe the aftermath of the deity's love-sport (Rāsakrīḍā) with the milkmaids, including his slaying of Shankacuda, Aristasura, and Keshi, Krishna's journey to Mathura, the slaying of his uncle Kamsa, his triumph over Jarasandha, his elopement and wedding with Rukmini, and descriptions of the beauty of the divine couple. The birth and exploits of their son, Pradyumna, and his son, Aniruddha, are described, and the work ends with the author seeking the blessings of Krishna. Translations The text has been translated into Kannada, Telugu, Tamil, Tulu, Marathi, Hindi and English languages. See also Yadavabhyudaya Gopalavimshati Hamsa Sandesha References Bibliography External links Googlepages site with links to English translation of Rukminishavijaya cantos Dvaita Vedanta Sanskrit poetry Epic poems in Sanskrit Krishna in popular culture
Epizoanthidae is a family of cnidarians. Genera include: Epizoanthus Gray, 1867 Paleozoanthus Carlgren, 1924 - taxon inquirendum Thoracactis Gravier, 1918 References Macrocnemina Cnidarian families
```smalltalk " I test the serialization of an entire class or trait, in the cases in which they *are not* present in the image at materialization time. " Trait { #name : 'FLTCreateClassOrTraitSerializationTest', #category : 'Fuel-Core-Tests-FullSerialization', #package : 'Fuel-Core-Tests', #tag : 'FullSerialization' } { #category : 'helpers' } FLTCreateClassOrTraitSerializationTest >> fullySerialize: aClass [ self serializer fullySerializeBehavior: aClass. self serialize: aClass ] { #category : 'helpers' } FLTCreateClassOrTraitSerializationTest >> materializeSilently: aBoolean [ | materialized | materialized := self materialized. self classFactory registerBehavior: materialized. aBoolean ifTrue: [ self classFactory createdSilently add: materialized ]. ^ materialized ] { #category : 'class-factory' } FLTCreateClassOrTraitSerializationTest >> newAnonymousClassOrTrait [ ^ self explicitRequirement ] { #category : 'helpers' } FLTCreateClassOrTraitSerializationTest >> resultOfSerializeRemoveAndMaterialize: aClass [ | wasSilent | self fullySerialize: aClass. wasSilent := self classFactory createdSilently includes: aClass. self classFactory delete: aClass. ^ self materializeSilently: wasSilent ] { #category : 'helpers' } FLTCreateClassOrTraitSerializationTest >> resultOfSerializeRemoveAndMaterializeAll: objects [ | classesOrTraits materialized silent | silent := OrderedCollection new. classesOrTraits := objects select: [ :anObject | anObject isBehavior or: [ anObject isTrait ] ]. self serializer fullySerializeAllBehaviors: classesOrTraits. self serialize: objects. classesOrTraits do: [ :aClassOrTrait | (self classFactory createdSilently includes: aClassOrTrait) ifTrue: [ silent add: aClassOrTrait name ]. self classFactory delete: aClassOrTrait ]. materialized := self materialized. materialized select: [ :object | object isBehavior ] thenDo: [ :behavior | self classFactory registerBehavior: behavior. (silent includes: behavior name) ifTrue: [ self classFactory createdSilently add: behavior ] ]. ^ materialized ] { #category : 'tests' } FLTCreateClassOrTraitSerializationTest >> testAnonymousBehaviorIsSerializable [ | classOrTrait | classOrTrait := self newAnonymousClassOrTrait. self deny: (self environmentOfTest includes: classOrTrait). self serialize: classOrTrait. self shouldnt: [ self materialized ] raise: FLClassNotFound ] { #category : 'tests' } FLTCreateClassOrTraitSerializationTest >> testCompiledMethodClassBinding [ "The class binding of each CM has to point to a correct Association, which should not be added to Smalltalk globals." | class materializedClassOrTrait className method1 method2 | class := self newClassOrTrait. self classFactory silentlyCompile: 'fortyTwo ^42' in: class; silentlyCompile: 'fortyThree ^43' in: class. className := class name. materializedClassOrTrait := self resultOfSerializeRemoveAndMaterialize: class. method1 := materializedClassOrTrait compiledMethodAt: #fortyTwo. method2 := materializedClassOrTrait compiledMethodAt: #fortyThree. self assert: className = method1 methodClass name. self assert: className = method2 methodClass name. self assert: method1 classBinding == method2 classBinding. self deny: (self environmentOfTest includesKey: className asSymbol) ] { #category : 'tests' } FLTCreateClassOrTraitSerializationTest >> testCreateBasic [ "Tests materialization of a class or trait not defined in the image." | aClassOrTrait materializedClassOrTrait environment name package packageTag | aClassOrTrait := self newClassOrTrait. environment := aClassOrTrait environment. package := aClassOrTrait package. packageTag := aClassOrTrait packageTag. name := aClassOrTrait name. materializedClassOrTrait := self resultOfSerializeRemoveAndMaterialize: aClassOrTrait. self deny: aClassOrTrait identicalTo: materializedClassOrTrait. self assert: environment identicalTo: materializedClassOrTrait environment. self assert: package identicalTo: materializedClassOrTrait package. self assert: packageTag name equals: materializedClassOrTrait packageTag name. self assert: name equals: materializedClassOrTrait name. "It is important to notice that Fuel does not add the materialized class or trait into Smalltalk globals." self deny: (self environmentOfTest includesKey: name) ] { #category : 'tests' } FLTCreateClassOrTraitSerializationTest >> testCreateWithClassSideMethod [ "Tests materialization of a class-side method in a class or trait not defined in the image." | aClassOrTrait materializedClassOrTrait category | category := 'tests-class-side'. aClassOrTrait := self newClassOrTrait. self classFactory silentlyCompile: 'fortyTwo ^42' in: aClassOrTrait classSide protocol: category. materializedClassOrTrait := self resultOfSerializeRemoveAndMaterialize: aClassOrTrait. self assert: (materializedClassOrTrait classSide includesSelector: #fortyTwo). self assertCollection: #(fortyTwo) hasSameElements: materializedClassOrTrait classSide localSelectors. self assert: category equals: (materializedClassOrTrait classSide protocolNameOfSelector: #fortyTwo). self assert: 42 equals: ((self newInstanceFrom: materializedClassOrTrait) class perform: #fortyTwo) ] { #category : 'tests' } FLTCreateClassOrTraitSerializationTest >> testCreateWithClassTrait [ "Tests materialization of a class not defined in the image, with a class trait" | class materializedClassOrTrait aTrait | aTrait := self classFactory silentlyNewTrait. self classFactory silentlyCompile: 'fortyTwo ^42' in: aTrait classSide. class := self classFactory silentlyNewClass. class addToComposition: aTrait. materializedClassOrTrait := self resultOfSerializeRemoveAndMaterialize: class. self assert: 1 equals: materializedClassOrTrait traits size. self assert: (materializedClassOrTrait traits includes: aTrait). self assert: (aTrait users includes: materializedClassOrTrait). self assert: materializedClassOrTrait classSide localSelectors isEmpty. self assert: 42 equals: ((self newInstanceFrom: materializedClassOrTrait) class perform: #fortyTwo) ] { #category : 'tests' } FLTCreateClassOrTraitSerializationTest >> testCreateWithComment [ "Tests materialization of the comment of a class or trait not defined in the image." | aClassOrTrait materializedClassOrTrait | aClassOrTrait := self newClassOrTrait. aClassOrTrait comment: 'test comment' stamp: 'test stamp'. materializedClassOrTrait := self resultOfSerializeRemoveAndMaterialize: aClassOrTrait. self assert: 'test comment' = materializedClassOrTrait comment. self assert: 'test stamp' = materializedClassOrTrait commentStamp ] { #category : 'tests' } FLTCreateClassOrTraitSerializationTest >> testCreateWithExternalTrait [ "Tests materialization of a class not defined in the image, with a trait" | aClassOrTrait materializedClassOrTrait aTrait | aTrait := self classFactory silentlyNewTrait. self classFactory silentlyCompile: 'fortyTwo ^42' in: aTrait. aClassOrTrait := self classFactory silentlyNewClass. aClassOrTrait addToComposition: aTrait. materializedClassOrTrait := self resultOfSerializeRemoveAndMaterialize: aClassOrTrait. self assert: 1 equals: materializedClassOrTrait traits size. self assert: (materializedClassOrTrait traits includes: aTrait). self assert: (aTrait users includes: materializedClassOrTrait). self assert: materializedClassOrTrait localSelectors isEmpty. self assert: 42 equals: ((self newInstanceFrom: materializedClassOrTrait) perform: #fortyTwo) ] { #category : 'tests' } FLTCreateClassOrTraitSerializationTest >> testCreateWithInstance [ "Tests materialization of an internal class or trait together with an object using it." | aClassOrTrait materializedObjects objectsToSerialize anInstance | aClassOrTrait := self newClassOrTrait. self classFactory silentlyCompile: 'fortyTwo ^42' in: aClassOrTrait. anInstance := self newInstanceFrom: aClassOrTrait. objectsToSerialize := Array with: aClassOrTrait with: anInstance with: anInstance class. materializedObjects := self resultOfSerializeRemoveAndMaterializeAll: objectsToSerialize. self assert: (materializedObjects first includesSelector: #fortyTwo). self assert: 42 equals: (materializedObjects second perform: #fortyTwo) ] { #category : 'tests' } FLTCreateClassOrTraitSerializationTest >> testCreateWithInternalTrait [ "Tests materialization of a class not defined in the image, with a trait, both internally serialized" | aClass aTrait serializedArray materializedArray materializedClassOrTrait materializedTrait | aTrait := self classFactory silentlyNewTrait. self classFactory silentlyCompile: 'fortyTwo ^42' in: aTrait. aClass := self newClassOrTrait. aClass addToComposition: aTrait. serializedArray := Array with: aClass with: aTrait. materializedArray := self resultOfSerializeRemoveAndMaterializeAll: serializedArray. materializedClassOrTrait := materializedArray first. materializedTrait := materializedArray second. self assert: 1 equals: (materializedClassOrTrait traits size). self assert: (materializedClassOrTrait traits includes: materializedTrait). self assert: (materializedTrait users includes: materializedClassOrTrait). self assert: materializedClassOrTrait localSelectors isEmpty. self assert: 42 equals: ((self newInstanceFrom: materializedClassOrTrait) perform: #fortyTwo) ] { #category : 'tests' } FLTCreateClassOrTraitSerializationTest >> testCreateWithMethod [ "Tests materialization of a compiled method in a class not defined in the image." | aClassOrTrait materializedClassOrTrait category | category := 'category-for-fuel-tests'. aClassOrTrait := self newClassOrTrait. self classFactory silentlyCompile: 'fortyTwo ^42' in: aClassOrTrait protocol: category. materializedClassOrTrait := self resultOfSerializeRemoveAndMaterialize: aClassOrTrait. self assert: (materializedClassOrTrait includesSelector: #fortyTwo). self assertCollection: #(fortyTwo) hasSameElements: materializedClassOrTrait localSelectors. self assert: category equals: (materializedClassOrTrait protocolNameOfSelector: #fortyTwo). self assert: 42 equals: ((self newInstanceFrom: materializedClassOrTrait) perform: #fortyTwo). ] { #category : 'tests' } FLTCreateClassOrTraitSerializationTest >> testCreateWithTraitOnClassSide [ "Tests materialization of a class not defined in the image, with a trait added to its class side" | aClass materializedClassOrTrait aTrait | aTrait := self classFactory silentlyNewTrait. self classFactory silentlyCompile: 'fortyTwo ^42' in: aTrait. aClass := self classFactory silentlyNewClass. aClass classSide addToComposition: aTrait. materializedClassOrTrait := self resultOfSerializeRemoveAndMaterialize: aClass. self assert: 1 equals: materializedClassOrTrait classSide traits size. self assert: (materializedClassOrTrait classSide traits includes: aTrait). self assert: (aTrait users includes: materializedClassOrTrait classSide). self assert: materializedClassOrTrait classSide localSelectors isEmpty. self assert: 42 equals: ((self newInstanceFrom: materializedClassOrTrait) class perform: #fortyTwo) ] { #category : 'tests' } FLTCreateClassOrTraitSerializationTest >> testDoesNotCreatePackage [ "Tests materialization of a package not defined in the image." | undefinedPackage aClassOrTrait materializedClassOrTrait package packageTag wasSilent | undefinedPackage := self packageOrganizer undefinedPackage. aClassOrTrait := self newClassOrTrait. package := aClassOrTrait package. packageTag := aClassOrTrait packageTag. self deny: package identicalTo: undefinedPackage. self fullySerialize: aClassOrTrait. wasSilent := self classFactory createdSilently includes: aClassOrTrait. self classFactory delete: aClassOrTrait. package removeFromSystem. self deny: (self packageOrganizer hasPackage: package). materializedClassOrTrait := self materializeSilently: wasSilent. self deny: package identicalTo: materializedClassOrTrait package. self assert: materializedClassOrTrait package identicalTo: undefinedPackage. self deny: packageTag name equals: materializedClassOrTrait packageTag name. self assert: materializedClassOrTrait packageTag identicalTo: undefinedPackage undefinedTag ] ```
```html <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Class pooled_fixedsize_stack</title> <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> <link rel="home" href="../../index.html" title="Chapter&#160;1.&#160;Coroutine2"> <link rel="up" href="../stack.html" title="Stack allocation"> <link rel="prev" href="protected_fixedsize.html" title="Class protected_fixedsize"> <link rel="next" href="fixedsize.html" title="Class fixedsize_stack"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td> <td align="center"><a href="../../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="path_to_url">People</a></td> <td align="center"><a href="path_to_url">FAQ</a></td> <td align="center"><a href="../../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="protected_fixedsize.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../stack.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="fixedsize.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> <a name="coroutine2.stack.pooled_fixedsize"></a><a class="link" href="pooled_fixedsize.html" title="Class pooled_fixedsize_stack">Class <span class="emphasis"><em>pooled_fixedsize_stack</em></span></a> </h3></div></div></div> <p> <span class="bold"><strong>Boost.Coroutine2</strong></span> provides the class <span class="emphasis"><em>pooled_fixedsize_stack</em></span> which models the <span class="emphasis"><em>stack-allocator concept</em></span>. In contrast to <span class="emphasis"><em>protected_fixedsize_stack</em></span> it does not append a guard page at the end of each stack. The memory is managed internally by <a href="path_to_url" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">pool</span><span class="special">&lt;&gt;</span></code></a>. </p> <pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">coroutine2</span><span class="special">/</span><span class="identifier">pooled_fixedsize_stack</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="keyword">struct</span> <span class="identifier">pooled_fixedsize_stack</span> <span class="special">{</span> <span class="identifier">pooled_fixedsize_stack</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">size</span> <span class="special">=</span> <span class="identifier">traits_type</span><span class="special">::</span><span class="identifier">default_size</span><span class="special">());</span> <span class="identifier">stack_context</span> <span class="identifier">allocate</span><span class="special">();</span> <span class="keyword">void</span> <span class="identifier">deallocate</span><span class="special">(</span> <span class="identifier">stack_context</span> <span class="special">&amp;);</span> <span class="special">}</span> </pre> <h5> <a name="coroutine2.stack.pooled_fixedsize.h0"></a> <span class="phrase"><a name="coroutine2.stack.pooled_fixedsize.your_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashhrase_role__special_____phrase___code_"></a></span><a class="link" href="pooled_fixedsize.html#coroutine2.stack.pooled_fixedsize.your_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashhrase_role__special_____phrase___code_"><code class="computeroutput"><span class="identifier">pooled_fixedsize_stack</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">stack_size</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">next_size</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">max_size</span><span class="special">)</span></code></a> </h5> <div class="variablelist"> <p class="title"><b></b></p> <dl class="variablelist"> <dt><span class="term">Preconditions:</span></dt> <dd><p> <code class="computeroutput"><span class="special">!</span> <span class="identifier">traits_type</span><span class="special">::</span><span class="identifier">is_unbounded</span><span class="special">()</span> <span class="special">&amp;&amp;</span> <span class="special">(</span> <span class="identifier">traits_type</span><span class="special">::</span><span class="identifier">maximum</span><span class="special">:</span><span class="identifier">size</span><span class="special">()</span> <span class="special">&gt;=</span> <span class="identifier">stack_size</span><span class="special">)</span></code> and <code class="computeroutput"><span class="number">0</span> <span class="special">&lt;</span> <span class="identifier">nest_size</span></code>. </p></dd> <dt><span class="term">Effects:</span></dt> <dd><p> Allocates memory of at least <code class="computeroutput"><span class="identifier">stack_size</span></code> Bytes and stores a pointer to the stack and its actual size in <code class="computeroutput"><span class="identifier">sctx</span></code>. Depending on the architecture (the stack grows downwards/upwards) the stored address is the highest/lowest address of the stack. Argument <code class="computeroutput"><span class="identifier">next_size</span></code> determines the number of stacks to request from the system the first time that <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code> needs to allocate system memory. The third argument <code class="computeroutput"><span class="identifier">max_size</span></code> controls how many memory might be allocated for stacks - a value of zero means no uper limit. </p></dd> </dl> </div> <h5> <a name="coroutine2.stack.pooled_fixedsize.h1"></a> <span class="phrase"><a name="coroutine2.stack.pooled_fixedsize.your_sha256_hashyour_sha256_hashase___code_"></a></span><a class="link" href="pooled_fixedsize.html#coroutine2.stack.pooled_fixedsize.your_sha256_hashyour_sha256_hashase___code_"><code class="computeroutput"><span class="identifier">stack_context</span> <span class="identifier">allocate</span><span class="special">()</span></code></a> </h5> <div class="variablelist"> <p class="title"><b></b></p> <dl class="variablelist"> <dt><span class="term">Preconditions:</span></dt> <dd><p> <code class="computeroutput"><span class="special">!</span> <span class="identifier">traits_type</span><span class="special">::</span><span class="identifier">is_unbounded</span><span class="special">()</span> <span class="special">&amp;&amp;</span> <span class="special">(</span> <span class="identifier">traits_type</span><span class="special">::</span><span class="identifier">maximum</span><span class="special">:</span><span class="identifier">size</span><span class="special">()</span> <span class="special">&gt;=</span> <span class="identifier">size</span><span class="special">)</span></code>. </p></dd> <dt><span class="term">Effects:</span></dt> <dd><p> Allocates memory of at least <code class="computeroutput"><span class="identifier">size</span></code> bytes and stores a pointer to the stack and its actual size in <code class="computeroutput"><span class="identifier">sctx</span></code>. Depending on the architecture (the stack grows downwards/upwards) the stored address is the highest/lowest address of the stack. </p></dd> </dl> </div> <h5> <a name="coroutine2.stack.pooled_fixedsize.h2"></a> <span class="phrase"><a name="coroutine2.stack.pooled_fixedsize.your_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashrole__special_____phrase___code_"></a></span><a class="link" href="pooled_fixedsize.html#coroutine2.stack.pooled_fixedsize.your_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashrole__special_____phrase___code_"><code class="computeroutput"><span class="keyword">void</span> <span class="identifier">deallocate</span><span class="special">(</span> <span class="identifier">stack_context</span> <span class="special">&amp;</span> <span class="identifier">sctx</span><span class="special">)</span></code></a> </h5> <div class="variablelist"> <p class="title"><b></b></p> <dl class="variablelist"> <dt><span class="term">Preconditions:</span></dt> <dd><p> <code class="computeroutput"><span class="identifier">sctx</span><span class="special">.</span><span class="identifier">sp</span></code> is valid, <code class="computeroutput"><span class="special">!</span> <span class="identifier">traits_type</span><span class="special">::</span><span class="identifier">is_unbounded</span><span class="special">()</span> <span class="special">&amp;&amp;</span> <span class="special">(</span> <span class="identifier">traits_type</span><span class="special">::</span><span class="identifier">maximum</span><span class="special">:</span><span class="identifier">size</span><span class="special">()</span> <span class="special">&gt;=</span> <span class="identifier">sctx</span><span class="special">.</span><span class="identifier">size</span><span class="special">)</span></code>. </p></dd> <dt><span class="term">Effects:</span></dt> <dd><p> Deallocates the stack space. </p></dd> </dl> </div> </div> <table xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> file LICENSE_1_0.txt or copy at <a href="path_to_url" target="_top">path_to_url </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="protected_fixedsize.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../stack.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="fixedsize.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> ```
```c++ #ifndef BOOST_THREAD_QUEUE_VIEWS_HPP #define BOOST_THREAD_QUEUE_VIEWS_HPP ////////////////////////////////////////////////////////////////////////////// // // LICENSE_1_0.txt or copy at path_to_url // // See path_to_url for documentation. // ////////////////////////////////////////////////////////////////////////////// #include <boost/thread/detail/config.hpp> #include <boost/thread/detail/move.hpp> #include <boost/thread/concurrent_queues/queue_op_status.hpp> #include <boost/thread/concurrent_queues/deque_base.hpp> #include <boost/config/abi_prefix.hpp> namespace boost { namespace concurrent { template <typename Queue> class deque_back_view { Queue* queue; public: typedef typename Queue::value_type value_type; typedef typename Queue::size_type size_type; // Constructors/Assignment/Destructors deque_back_view(Queue& q) BOOST_NOEXCEPT : queue(&q) {} // Observers bool empty() const { return queue->empty(); } bool full() const { return queue->full(); } size_type size() const { return queue->size(); } bool closed() const { return queue->closed(); } // Modifiers void close() { queue->close(); } void push(const value_type& x) { queue->push_back(x); } void pull(value_type& x) { queue->pull_back(x); } // enable_if is_nothrow_copy_movable<value_type> value_type pull() { return queue->pull_back(); } queue_op_status try_push(const value_type& x) { return queue->try_push_back(x); } queue_op_status try_pull(value_type& x) { return queue->try_pull_back(x); } queue_op_status nonblocking_push(const value_type& x) { return queue->nonblocking_push_back(x); } queue_op_status nonblocking_pull(value_type& x) { return queue->nonblocking_pull_back(x); } queue_op_status wait_push(const value_type& x) { return queue->wait_push_back(x); } queue_op_status wait_pull(value_type& x) { return queue->wait_pull_back(x); } void push(BOOST_THREAD_RV_REF(value_type) x) { queue->push_back(boost::move(x)); } queue_op_status try_push(BOOST_THREAD_RV_REF(value_type) x) { return queue->try_push_back(boost::move(x)); } queue_op_status nonblocking_push(BOOST_THREAD_RV_REF(value_type) x) { return queue->nonblocking_push_back(boost::move(x)); } queue_op_status wait_push(BOOST_THREAD_RV_REF(value_type) x) { return queue->wait_push_back(boost::move(x)); } }; template <typename Queue> class deque_front_view { Queue* queue; public: typedef typename Queue::value_type value_type; typedef typename Queue::size_type size_type; // Constructors/Assignment/Destructors deque_front_view(Queue& q) BOOST_NOEXCEPT : queue(&q) {} // Observers bool empty() const { return queue->empty(); } bool full() const { return queue->full(); } size_type size() const { return queue->size(); } bool closed() const { return queue->closed(); } // Modifiers void close() { queue->close(); } void push(const value_type& x) { queue->push_front(x); } void pull(value_type& x) { queue->pull_front(x); }; // enable_if is_nothrow_copy_movable<value_type> value_type pull() { return queue->pull_front(); } queue_op_status try_push(const value_type& x) { return queue->try_push_front(x); } queue_op_status try_pull(value_type& x) { return queue->try_pull_front(x); } queue_op_status nonblocking_push(const value_type& x) { return queue->nonblocking_push_front(x); } queue_op_status nonblocking_pull(value_type& x) { return queue->nonblocking_pull_front(x); } queue_op_status wait_push(const value_type& x) { return queue->wait_push_front(x); } queue_op_status wait_pull(value_type& x) { return queue->wait_pull_front(x); } void push(BOOST_THREAD_RV_REF(value_type) x) { queue->push_front(forward<value_type>(x)); } queue_op_status try_push(BOOST_THREAD_RV_REF(value_type) x) { return queue->try_push_front(forward<value_type>(x)); } queue_op_status nonblocking_push(BOOST_THREAD_RV_REF(value_type) x) { return queue->nonblocking_push_front(forward<value_type>(x)); } queue_op_status wait_push(BOOST_THREAD_RV_REF(value_type) x) { return queue->wait_push_front(forward<value_type>(x)); } }; #if ! defined BOOST_NO_CXX11_TEMPLATE_ALIASES template <class T> using deque_back = deque_back_view<deque_base<T> > ; template <class T> using deque_front = deque_front_view<deque_base<T> > ; #else template <class T> struct deque_back : deque_back_view<deque_base<T> > { typedef deque_back_view<deque_base<T> > base_type; deque_back(deque_base<T>& q) BOOST_NOEXCEPT : base_type(q) {} }; template <class T> struct deque_front : deque_front_view<deque_base<T> > { typedef deque_front_view<deque_base<T> > base_type; deque_front(deque_base<T>& q) BOOST_NOEXCEPT : base_type(q) {} }; #endif // template <class Queue> // deque_back_view<Queue> back(Queue & q) { return deque_back_view<Queue>(q); } // template <class Queue> // deque_front_view<Queue> front(Queue & q) { return deque_front_view<Queue>(q); } //#if 0 // template <class T> // deque_back<T> back(deque_base<T> & q) { return deque_back<T>(q); } // template <class T> // deque_front<T> front(deque_base<T> & q) { return deque_front<T>(q); } //#else // template <class T> // typename deque_back<T>::type back(deque_base<T> & q) { return typename deque_back<T>::type(q); } // template <class T> // typename deque_front<T>::type front(deque_base<T> & q) { return typename deque_front<T>::type(q); } //#endif } using concurrent::deque_back_view; using concurrent::deque_front_view; using concurrent::deque_back; using concurrent::deque_front; //using concurrent::back; //using concurrent::front; } #include <boost/config/abi_suffix.hpp> #endif ```
```xml <?xml version="1.0" encoding="utf-8"?> <Project> <PropertyGroup> <OutputType>Exe</OutputType> <ApplicationTitle>MyClassRedirectApp</ApplicationTitle> <ApplicationId>com.xamarin.myclassredirectapp</ApplicationId> <ExcludeNUnitLiteReference>true</ExcludeNUnitLiteReference> <ExcludeTouchUnitReference>true</ExcludeTouchUnitReference> <DefineConstants>$(DefineConstants);$(AdditionalDefineConstants)</DefineConstants> </PropertyGroup> <Import Project="../../common/shared-dotnet.csproj" /> <ItemGroup> <Compile Include="../*.cs" /> </ItemGroup> </Project> ```
```c++ /* * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "config.h" #include "public/platform/modules/indexeddb/WebIDBKey.h" #include "modules/indexeddb/IDBKey.h" namespace blink { WebIDBKey WebIDBKey::createArray(const WebVector<WebIDBKey>& array) { WebIDBKey key; key.assignArray(array); return key; } WebIDBKey WebIDBKey::createBinary(const WebData& binary) { WebIDBKey key; key.assignBinary(binary); return key; } WebIDBKey WebIDBKey::createString(const WebString& string) { WebIDBKey key; key.assignString(string); return key; } WebIDBKey WebIDBKey::createDate(double date) { WebIDBKey key; key.assignDate(date); return key; } WebIDBKey WebIDBKey::createNumber(double number) { WebIDBKey key; key.assignNumber(number); return key; } WebIDBKey WebIDBKey::createInvalid() { WebIDBKey key; key.assignInvalid(); return key; } WebIDBKey WebIDBKey::createNull() { WebIDBKey key; key.assignNull(); return key; } #if BLINK_WEB_IMPLEMENTATION || !LINK_CORE_MODULES_SEPARATELY void WebIDBKey::reset() { m_private.reset(); } #endif void WebIDBKey::assign(const WebIDBKey& value) { m_private = value.m_private; } static IDBKey* convertFromWebIDBKeyArray(const WebVector<WebIDBKey>& array) { IDBKey::KeyArray keys; keys.reserveCapacity(array.size()); for (size_t i = 0; i < array.size(); ++i) { switch (array[i].keyType()) { case WebIDBKeyTypeArray: keys.append(convertFromWebIDBKeyArray(array[i].array())); break; case WebIDBKeyTypeBinary: keys.append(IDBKey::createBinary(array[i].binary())); break; case WebIDBKeyTypeString: keys.append(IDBKey::createString(array[i].string())); break; case WebIDBKeyTypeDate: keys.append(IDBKey::createDate(array[i].date())); break; case WebIDBKeyTypeNumber: keys.append(IDBKey::createNumber(array[i].number())); break; case WebIDBKeyTypeInvalid: keys.append(IDBKey::createInvalid()); break; case WebIDBKeyTypeNull: case WebIDBKeyTypeMin: ASSERT_NOT_REACHED(); break; } } return IDBKey::createArray(keys); } static void convertToWebIDBKeyArray(const IDBKey::KeyArray& array, WebVector<WebIDBKey>& result) { WebVector<WebIDBKey> keys(array.size()); WebVector<WebIDBKey> subkeys; for (size_t i = 0; i < array.size(); ++i) { IDBKey* key = array[i]; switch (key->type()) { case IDBKey::ArrayType: convertToWebIDBKeyArray(key->array(), subkeys); keys[i] = WebIDBKey::createArray(subkeys); break; case IDBKey::BinaryType: keys[i] = WebIDBKey::createBinary(key->binary()); break; case IDBKey::StringType: keys[i] = WebIDBKey::createString(key->string()); break; case IDBKey::DateType: keys[i] = WebIDBKey::createDate(key->date()); break; case IDBKey::NumberType: keys[i] = WebIDBKey::createNumber(key->number()); break; case IDBKey::InvalidType: keys[i] = WebIDBKey::createInvalid(); break; case IDBKey::MinType: ASSERT_NOT_REACHED(); break; } } result.swap(keys); } void WebIDBKey::assignArray(const WebVector<WebIDBKey>& array) { m_private = convertFromWebIDBKeyArray(array); } void WebIDBKey::assignBinary(const WebData& binary) { m_private = IDBKey::createBinary(binary); } void WebIDBKey::assignString(const WebString& string) { m_private = IDBKey::createString(string); } void WebIDBKey::assignDate(double date) { m_private = IDBKey::createDate(date); } void WebIDBKey::assignNumber(double number) { m_private = IDBKey::createNumber(number); } void WebIDBKey::assignInvalid() { m_private = IDBKey::createInvalid(); } void WebIDBKey::assignNull() { m_private.reset(); } WebIDBKeyType WebIDBKey::keyType() const { if (!m_private.get()) return WebIDBKeyTypeNull; return static_cast<WebIDBKeyType>(m_private->type()); } bool WebIDBKey::isValid() const { if (!m_private.get()) return false; return m_private->isValid(); } WebVector<WebIDBKey> WebIDBKey::array() const { WebVector<WebIDBKey> keys; convertToWebIDBKeyArray(m_private->array(), keys); return keys; } WebData WebIDBKey::binary() const { return m_private->binary(); } WebString WebIDBKey::string() const { return m_private->string(); } double WebIDBKey::date() const { return m_private->date(); } double WebIDBKey::number() const { return m_private->number(); } } // namespace blink ```
```objective-c // This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // // This Source Code Form is subject to the terms of the Mozilla // with this file, You can obtain one at the mozilla.org home page /* * NOTE: This file is the modified version of sp_coletree.c file in SuperLU * -- SuperLU routine (version 3.1) -- * Univ. of California Berkeley, Xerox Palo Alto Research Center, * and Lawrence Berkeley National Lab. * August 1, 2008 * * * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY * EXPRESSED OR IMPLIED. ANY USE IS AT YOUR OWN RISK. * * Permission is hereby granted to use or copy this program for any * purpose, provided the above notices are retained on all copies. * Permission to modify the code and to distribute modified code is * granted, provided the above notices are retained, and a notice that * the code was modified is included with the above copyright notice. */ #ifndef SPARSE_COLETREE_H #define SPARSE_COLETREE_H namespace Eigen { namespace internal { /** Find the root of the tree/set containing the vertex i : Use Path halving */ template<typename Index, typename IndexVector> Index etree_find (Index i, IndexVector& pp) { Index p = pp(i); // Parent Index gp = pp(p); // Grand parent while (gp != p) { pp(i) = gp; // Parent pointer on find path is changed to former grand parent i = gp; p = pp(i); gp = pp(p); } return p; } /** Compute the column elimination tree of a sparse matrix * \param mat The matrix in column-major format. * \param parent The elimination tree * \param firstRowElt The column index of the first element in each row * \param perm The permutation to apply to the column of \b mat */ template <typename MatrixType, typename IndexVector> int coletree(const MatrixType& mat, IndexVector& parent, IndexVector& firstRowElt, typename MatrixType::StorageIndex *perm=0) { typedef typename MatrixType::StorageIndex StorageIndex; StorageIndex nc = convert_index<StorageIndex>(mat.cols()); // Number of columns StorageIndex m = convert_index<StorageIndex>(mat.rows()); StorageIndex diagSize = (std::min)(nc,m); IndexVector root(nc); // root of subtree of etree root.setZero(); IndexVector pp(nc); // disjoint sets pp.setZero(); // Initialize disjoint sets parent.resize(mat.cols()); //Compute first nonzero column in each row firstRowElt.resize(m); firstRowElt.setConstant(nc); firstRowElt.segment(0, diagSize).setLinSpaced(diagSize, 0, diagSize-1); bool found_diag; for (StorageIndex col = 0; col < nc; col++) { StorageIndex pcol = col; if(perm) pcol = perm[col]; for (typename MatrixType::InnerIterator it(mat, pcol); it; ++it) { Index row = it.row(); firstRowElt(row) = (std::min)(firstRowElt(row), col); } } /* Compute etree by Liu's algorithm for symmetric matrices, except use (firstRowElt[r],c) in place of an edge (r,c) of A. Thus each row clique in A'*A is replaced by a star centered at its first vertex, which has the same fill. */ StorageIndex rset, cset, rroot; for (StorageIndex col = 0; col < nc; col++) { found_diag = col>=m; pp(col) = col; cset = col; root(cset) = col; parent(col) = nc; /* The diagonal element is treated here even if it does not exist in the matrix * hence the loop is executed once more */ StorageIndex pcol = col; if(perm) pcol = perm[col]; for (typename MatrixType::InnerIterator it(mat, pcol); it||!found_diag; ++it) { // A sequence of interleaved find and union is performed Index i = col; if(it) i = it.index(); if (i == col) found_diag = true; StorageIndex row = firstRowElt(i); if (row >= col) continue; rset = internal::etree_find(row, pp); // Find the name of the set containing row rroot = root(rset); if (rroot != col) { parent(rroot) = col; pp(cset) = rset; cset = rset; root(cset) = col; } } } return 0; } /** * Depth-first search from vertex n. No recursion. * This routine was contributed by Cdric Doucet, CEDRAT Group, Meylan, France. */ template <typename IndexVector> void nr_etdfs (typename IndexVector::Scalar n, IndexVector& parent, IndexVector& first_kid, IndexVector& next_kid, IndexVector& post, typename IndexVector::Scalar postnum) { typedef typename IndexVector::Scalar StorageIndex; StorageIndex current = n, first, next; while (postnum != n) { // No kid for the current node first = first_kid(current); // no kid for the current node if (first == -1) { // Numbering this node because it has no kid post(current) = postnum++; // looking for the next kid next = next_kid(current); while (next == -1) { // No more kids : back to the parent node current = parent(current); // numbering the parent node post(current) = postnum++; // Get the next kid next = next_kid(current); } // stopping criterion if (postnum == n+1) return; // Updating current node current = next; } else { current = first; } } } /** * \brief Post order a tree * \param n the number of nodes * \param parent Input tree * \param post postordered tree */ template <typename IndexVector> void treePostorder(typename IndexVector::Scalar n, IndexVector& parent, IndexVector& post) { typedef typename IndexVector::Scalar StorageIndex; IndexVector first_kid, next_kid; // Linked list of children StorageIndex postnum; // Allocate storage for working arrays and results first_kid.resize(n+1); next_kid.setZero(n+1); post.setZero(n+1); // Set up structure describing children first_kid.setConstant(-1); for (StorageIndex v = n-1; v >= 0; v--) { StorageIndex dad = parent(v); next_kid(v) = first_kid(dad); first_kid(dad) = v; } // Depth-first search from dummy root vertex #n postnum = 0; internal::nr_etdfs(n, parent, first_kid, next_kid, post, postnum); } } // end namespace internal } // end namespace Eigen #endif // SPARSE_COLETREE_H ```
is a Japanese mathematician working in number theory, especially analytic number theory, multiple trigonometric function theory, zeta functions and automorphic forms. He is currently a professor emeritus at Tokyo Institute of Technology. Books with Shin-ya Koyama, 多重三角関数論講義 (Lectures on multiple sine functions), 2010. Lectures notes originally from April–July 1991 at University of Tokyo. with Shinya Koyama, Absolute Mathematics, 2010. (Japanese) Pursuit of the Riemann Hypothesis: ABC to Z, 2012. (Japanese) Beyond the Riemann Hypothesis: Deep Riemann Hypothesis (DRH), 2013. (Japanese) Modern trigonometric function theory, 2013. (Japanese) Principles of Absolute Mathematics, 2016. (Japanese) The World of Absolute Mathematics: Riemann Hypothesis, Langlands conjecture, Sato conjecture, 2017. (Japanese) with Shinya Koyama, Introduction to the ABC conjecture, 2018. (Japanese) References External links Journey to the world of absolute mathematics at Tokyo Institute of Technology, March 28, 2017 (video) 20th-century Japanese mathematicians 21st-century Japanese mathematicians 1952 births Living people
```python # # # path_to_url # # Unless required by applicable law or agreed to in writing, software # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # repo: PaddleDetection # model: configs^picodet^legacy_model^picodet_s_320_coco_single_dy2st_train # api:paddle.nn.functional.pooling.adaptive_avg_pool2d||api:paddle.nn.functional.conv._conv_nd||api:paddle.nn.functional.activation.relu||api:paddle.nn.functional.conv._conv_nd||api:paddle.nn.functional.activation.hardsigmoid||api:paddle.tensor.math.multiply from base import * # noqa: F403 from paddle.static import InputSpec class LayerCase(paddle.nn.Layer): def __init__(self): super().__init__() self.parameter_0 = self.create_parameter( shape=[11, 44, 1, 1], dtype=paddle.float32, ) self.parameter_1 = self.create_parameter( shape=[44], dtype=paddle.float32, ) self.parameter_2 = self.create_parameter( shape=[44, 11, 1, 1], dtype=paddle.float32, ) self.parameter_3 = self.create_parameter( shape=[11], dtype=paddle.float32, ) def forward( self, var_0, # (shape: [1, 44, 32, 32], dtype: paddle.float32, stop_gradient: False) ): var_1 = paddle.nn.functional.pooling.adaptive_avg_pool2d( var_0, output_size=1, data_format='NCHW', name=None ) var_2 = paddle.nn.functional.conv._conv_nd( var_1, self.parameter_0, bias=self.parameter_3, stride=[1, 1], padding=[0, 0], padding_algorithm='EXPLICIT', dilation=[1, 1], groups=1, data_format='NCHW', channel_dim=1, op_type='conv2d', use_cudnn=True, ) var_3 = paddle.nn.functional.activation.relu(var_2) var_4 = paddle.nn.functional.conv._conv_nd( var_3, self.parameter_2, bias=self.parameter_1, stride=[1, 1], padding=[0, 0], padding_algorithm='EXPLICIT', dilation=[1, 1], groups=1, data_format='NCHW', channel_dim=1, op_type='conv2d', use_cudnn=True, ) var_5 = paddle.nn.functional.activation.hardsigmoid(var_4) var_6 = paddle.tensor.math.multiply(x=var_0, y=var_5) return var_6 class TestLayer(TestBase): def init(self): self.input_specs = [ InputSpec( shape=(-1, 44, -1, -1), dtype=paddle.float32, name=None, stop_gradient=False, ) ] self.inputs = ( paddle.rand(shape=[1, 44, 32, 32], dtype=paddle.float32), ) self.net = LayerCase # NOTE prim + cinn lead to error if __name__ == '__main__': unittest.main() ```
```objective-c /* * */ #pragma once #ifdef __cplusplus extern "C" { #endif /* Configuration Set ID: 1 */ /* 3.1 Basic Config Parameters */ #define OTG_MODE 0 #define OTG_ARCHITECTURE 2 #define OTG_SINGLE_POINT 1 #define OTG_ENABLE_LPM 0 #define OTG_EN_DED_TX_FIFO 1 #define OTG_EN_DESC_DMA 1 #define OTG_MULTI_PROC_INTRPT 0 /* 3.2 USB Physical Layer Interface Parameters */ #define OTG_HSPHY_INTERFACE 0 #define OTG_FSPHY_INTERFACE 1 #define OTG_ENABLE_IC_USB 0 #define OTG_I2C_INTERFACE 0 #define OTG_ADP_SUPPORT 0 #define OTG_BC_SUPPORT 0 /* 3.3 Device Endpoint Configuration Parameters */ #define OTG_NUM_EPS 6 #define OTG_NUM_IN_EPS 5 #define OTG_NUM_CRL_EPS 0 /* 3.4 Host Endpoint Configuration Parameters */ #define OTG_NUM_HOST_CHAN 8 #define OTG_EN_PERIO_HOST 1 /* 3.5 Endpoint Channel FIFO Configuration Parameters */ #define OTG_DFIFO_DEPTH 256 #define OTG_DFIFO_DYNAMIC 1 #define OTG_RX_DFIFO_DEPTH 256 #define OTG_TX_HNPERIO_DFIFO_DEPTH 256 #define OTG_TX_NPERIO_DFIFO_DEPTH 256 #define OTG_TX_HPERIO_DFIFO_DEPTH 256 #define OTG_NPERIO_TX_QUEUE_DEPTH 4 #define OTG_PERIO_TX_QUEUE_DEPTH 8 /* 3.6 Additional Configuration Options Parameters */ #define OTG_TRANS_COUNT_WIDTH 16 #define OTG_PACKET_COUNT_WIDTH 7 #define OTG_RM_OPT_FEATURES 1 #define OTG_EN_PWROPT 1 #define OTG_SYNC_RESET_TYPE 0 #define OTG_EN_IDDIG_FILTER 1 #define OTG_EN_VBUSVALID_FILTER 1 #define OTG_EN_A_VALID_FILTER 1 #define OTG_EN_B_VALID_FILTER 1 #define OTG_EN_SESSIONEND_FILTER 1 #define OTG_EXCP_CNTL_XFER_FLOW 1 #define OTG_PWR_CLAMP 0 #define OTG_PWR_SWITCH_POLARITY 0 /* 3.7 Endpoint Direction Parameters */ #define OTG_EP_DIR_1 0 #define OTG_EP_DIR_2 0 #define OTG_EP_DIR_3 0 #define OTG_EP_DIR_4 0 #define OTG_EP_DIR_5 0 #define OTG_EP_DIR_6 0 /* 3.8 Device Periodic FIFO Depth Parameters */ /* 3.9 Device IN Endpoint FIFO Depth Parameters */ #define OTG_TX_DINEP_DFIFO_DEPTH_1 256 #define OTG_TX_DINEP_DFIFO_DEPTH_2 256 #define OTG_TX_DINEP_DFIFO_DEPTH_3 256 #define OTG_TX_DINEP_DFIFO_DEPTH_4 256 /* 3.10 UTMI-To-UTMI Bridge Component Parameters */ #define U2UB_EN 0 #ifdef __cplusplus } #endif ```
```java /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * specific language governing permissions and limitations */ package io.ballerina.compiler.internal.parser.tree; import io.ballerina.compiler.syntax.tree.ImplicitAnonymousFunctionParameters; import io.ballerina.compiler.syntax.tree.Node; import io.ballerina.compiler.syntax.tree.NonTerminalNode; import io.ballerina.compiler.syntax.tree.SyntaxKind; import java.util.Collection; import java.util.Collections; /** * This is a generated internal syntax tree node. * * @since 2.0.0 */ public class STImplicitAnonymousFunctionParameters extends STNode { public final STNode openParenToken; public final STNode parameters; public final STNode closeParenToken; STImplicitAnonymousFunctionParameters( STNode openParenToken, STNode parameters, STNode closeParenToken) { this( openParenToken, parameters, closeParenToken, Collections.emptyList()); } STImplicitAnonymousFunctionParameters( STNode openParenToken, STNode parameters, STNode closeParenToken, Collection<STNodeDiagnostic> diagnostics) { super(SyntaxKind.INFER_PARAM_LIST, diagnostics); this.openParenToken = openParenToken; this.parameters = parameters; this.closeParenToken = closeParenToken; addChildren( openParenToken, parameters, closeParenToken); } @Override public STNode modifyWith(Collection<STNodeDiagnostic> diagnostics) { return new STImplicitAnonymousFunctionParameters( this.openParenToken, this.parameters, this.closeParenToken, diagnostics); } public STImplicitAnonymousFunctionParameters modify( STNode openParenToken, STNode parameters, STNode closeParenToken) { if (checkForReferenceEquality( openParenToken, parameters, closeParenToken)) { return this; } return new STImplicitAnonymousFunctionParameters( openParenToken, parameters, closeParenToken, diagnostics); } @Override public Node createFacade(int position, NonTerminalNode parent) { return new ImplicitAnonymousFunctionParameters(this, position, parent); } @Override public void accept(STNodeVisitor visitor) { visitor.visit(this); } @Override public <T> T apply(STNodeTransformer<T> transformer) { return transformer.transform(this); } } ```
```objective-c #ifndef __al_included_allegro5_alcompat_h #define __al_included_allegro5_alcompat_h #ifdef __cplusplus extern "C" { #endif #define ALLEGRO_DST_COLOR (ALLEGRO_DEST_COLOR) #define ALLEGRO_INVERSE_DST_COLOR (ALLEGRO_INVERSE_DEST_COLOR) #define al_convert_bitmaps() (al_convert_memory_bitmaps()) #define al_current_time() (al_get_time()) #define al_event_queue_is_empty(q) (al_is_event_queue_empty(q)) #define al_toggle_display_flag(d, f, o) (al_set_display_flag((d), (f), (o))) #ifdef __cplusplus } #endif #endif /* vim: set sts=3 sw=3 et: */ ```
```javascript /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule BrowserSupportCore */ import getVendorPrefixedName from '../core/getVendorPrefixedName'; const BrowserSupportCore = { /** * @return {bool} True if browser supports css animations. */ hasCSSAnimations() { return !!getVendorPrefixedName('animationName'); }, /** * @return {bool} True if browser supports css transforms. */ hasCSSTransforms() { return !!getVendorPrefixedName('transform'); }, /** * @return {bool} True if browser supports css 3d transforms. */ hasCSS3DTransforms() { return !!getVendorPrefixedName('perspective'); }, /** * @return {bool} True if browser supports css transitions. */ hasCSSTransitions() { return !!getVendorPrefixedName('transition'); }, }; export default BrowserSupportCore; ```
```c /* $OpenBSD: init.c,v 1.8 2014/10/16 18:23:26 deraadt Exp $ */ /* $NetBSD: init.c,v 1.6 1995/03/21 09:03:05 cgd Exp $ */ /*- * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #include <stdarg.h> #include "csh.h" #include "extern.h" #define INF 1000 struct biltins bfunc[] = { { "@", dolet, 0, INF }, { "alias", doalias, 0, INF }, { "bg", dobg, 0, INF }, { "break", dobreak, 0, 0 }, { "breaksw", doswbrk, 0, 0 }, { "case", dozip, 0, 1 }, { "cd", dochngd, 0, INF }, { "chdir", dochngd, 0, INF }, { "continue", docontin, 0, 0 }, { "default", dozip, 0, 0 }, { "dirs", dodirs, 0, INF }, { "echo", doecho, 0, INF }, { "else", doelse, 0, INF }, { "end", doend, 0, 0 }, { "endif", dozip, 0, 0 }, { "endsw", dozip, 0, 0 }, { "eval", doeval, 0, INF }, { "exec", execash, 1, INF }, { "exit", doexit, 0, INF }, { "fg", dofg, 0, INF }, { "foreach", doforeach, 3, INF }, { "glob", doglob, 0, INF }, { "goto", dogoto, 1, 1 }, { "hashstat", hashstat, 0, 0 }, { "history", dohist, 0, 2 }, { "if", doif, 1, INF }, { "jobs", dojobs, 0, 1 }, { "kill", dokill, 1, INF }, { "limit", dolimit, 0, 3 }, { "linedit", doecho, 0, INF }, { "login", dologin, 0, 1 }, { "logout", dologout, 0, 0 }, { "nice", donice, 0, INF }, { "nohup", donohup, 0, INF }, { "notify", donotify, 0, INF }, { "onintr", doonintr, 0, 2 }, { "popd", dopopd, 0, INF }, { "pushd", dopushd, 0, INF }, { "rehash", dohash, 0, 0 }, { "repeat", dorepeat, 2, INF }, { "set", doset, 0, INF }, { "setenv", dosetenv, 0, 2 }, { "shift", shift, 0, 1 }, { "source", dosource, 1, 2 }, { "stop", dostop, 1, INF }, { "suspend", dosuspend, 0, 0 }, { "switch", doswitch, 1, INF }, { "time", dotime, 0, INF }, { "umask", doumask, 0, 1 }, { "unalias", unalias, 1, INF }, { "unhash", dounhash, 0, 0 }, { "unlimit", dounlimit, 0, INF }, { "unset", unset, 1, INF }, { "unsetenv", dounsetenv, 1, INF }, { "wait", dowait, 0, 0 }, { "which", dowhich, 1, INF }, { "while", dowhile, 1, INF } }; int nbfunc = sizeof bfunc / sizeof *bfunc; struct srch srchn[] = { { "@", T_LET }, { "break", T_BREAK }, { "breaksw", T_BRKSW }, { "case", T_CASE }, { "default", T_DEFAULT }, { "else", T_ELSE }, { "end", T_END }, { "endif", T_ENDIF }, { "endsw", T_ENDSW }, { "exit", T_EXIT }, { "foreach", T_FOREACH }, { "goto", T_GOTO }, { "if", T_IF }, { "label", T_LABEL }, { "set", T_SET }, { "switch", T_SWITCH }, { "while", T_WHILE } }; int nsrchn = sizeof srchn / sizeof *srchn; ```
Clivina cruralis is a species of ground beetle in the subfamily Scaritinae. It was described by Jules Putzeys in 1866. References cruralis Beetles described in 1866
```xml import { Liquid } from '../../src/liquid' import { LiquidOptions } from '../../src/liquid-options' export const liquid = new Liquid() export function render (src: string, ctx?: object) { return liquid.parseAndRender(src, ctx) } export async function test (src: string, ctx: object | string, expected?: string | RegExp, opts?: LiquidOptions) { if (expected === undefined) { expected = ctx as string ctx = {} } const engine = opts ? new Liquid(opts) : liquid const result = await engine.parseAndRender(src, ctx as object) if (expected instanceof RegExp) return expect(result).toMatch(expected) return expect(result).toBe(expected) } ```
```javascript x = { get() { } } ```
"Well, Did You Evah!" is a song written by Cole Porter for his 1939 musical DuBarry Was a Lady, where it was introduced by Betty Grable and Charles Walters. It is written as a duet, with the pair exchanging bad news and each shrugging off the other's tidbits in favor of an aloof good time. Notable uses Originally appears in Broadway musical DuBarry Was a Lady (1939). Bing Crosby and Frank Sinatra in the movie High Society (recorded January 17, 1956). Likely the most well-known version of the song, it was added to the movie late in development, to give the two stars an opportunity to sing together. Deborah Harry and Iggy Pop recorded the song in 1990 for Red Hot + Blue, a compilation album released as part of an HIV/AIDS benefit project. Released as a single in the UK on December 24, 1990 but not the US. The single reached No. 42 in the UK Singles Chart, and No. 29 in the Irish chart. Revivals of DuBarry or its score were produced in New York, London and San Francisco in 1993, 1996, 2001, and 2014. The 2001 production was recorded by the BBC for broadcast in 2002. All included Well, Did You Evah! using the original lyrics. A cover of the song was performed by British singer Robbie Williams in collaboration with American actor and comedian Jon Lovitz. The song was parodied for use in Iceland‘s Christmas adverts in 2009, sung by Coleen Nolan and Jason Donovan. The song was sung in Week 5 of Over the Rainbow (2010 TV series) by the competing Dorothies, as part of a mash-up with Wild Thing by The Troggs and Get The Party Started by P!nk. Marks & Spencer used it in their 2004 Christmas advert on what makes the perfect Christmas cocktail, starring Rachel Stevens, Martine McCutcheon, Gordon Ramsay and Helen Mirren. Kevin Kline and Ashley Judd sang it in the 2004 Cole Porter biopic, De-Lovely References 1939 songs 1991 singles Songs written by Cole Porter Songs from Cole Porter musicals Songs from High Society (1956 film) Bing Crosby songs Frank Sinatra songs Debbie Harry songs Robbie Williams songs Male–female vocal duets Iggy Pop songs
```scala package ml.combust.mleap.runtime.transformer.classification import ml.combust.mleap.core.classification.NaiveBayesModel import ml.combust.mleap.core.types._ import ml.combust.mleap.runtime.function.UserDefinedFunction import ml.combust.mleap.tensor.Tensor import ml.combust.mleap.core.util.VectorConverters._ import ml.combust.mleap.runtime.frame.{MultiTransformer, Row, Transformer} /** * Created by fshabbir on 12/24/16. */ case class NaiveBayesClassifier(override val uid: String = Transformer.uniqueName("random_forest_classification"), override val shape: NodeShape, override val model: NaiveBayesModel) extends MultiTransformer { override val exec: UserDefinedFunction = { val f = (shape.getOutput("raw_prediction"), shape.getOutput("probability")) match { case (Some(_), Some(_)) => (features: Tensor[Double]) => { val rawPrediction = model.predictRaw(features) val probability = model.rawToProbability(rawPrediction) val prediction = model.probabilityToPrediction(probability) Row(rawPrediction: Tensor[Double], probability: Tensor[Double], prediction) } case (Some(_), None) => (features: Tensor[Double]) => { val rawPrediction = model.predictRaw(features) val prediction = model.rawToPrediction(rawPrediction) Row(rawPrediction: Tensor[Double], prediction) } case (None, Some(_)) => (features: Tensor[Double]) => { val probability = model.predictProbabilities(features) val prediction = model.probabilityToPrediction(probability) Row(probability: Tensor[Double], prediction) } case (None, None) => (features: Tensor[Double]) => Row(model(features)) } UserDefinedFunction(f, outputSchema, inputSchema) } } ```
The Universal Mixed Grand Lodge (, GLMU) is a French Masonic jurisdiction, formed by a split in the French federation of Le Droit Humain by those who felt that this jurisdiction's Supreme Council was too important in the jurisdiction's functioning (though the first attempts at its creation date back to 1913, with the creation of a Symbolic Mixed Grand Lodge that also felt this). France Freemasonry in France Co-Freemasonry
George Edward Capers (September 2, 1892 – death date unknown) was an American Negro league outfielder in the 1910s. A native of Charleston, South Carolina, Capers attended Howard University. In 1912, he played in the Negro leagues for the Cuban Giants, and played for the Philadelphia Giants in 1914. References External links Baseball statistics and player information from Baseball-Reference Black Baseball Stats and Seamheads 1892 births Year of death missing Place of death missing Cuban Giants players Philadelphia Giants players Baseball players from Charleston, South Carolina
Moduza procris, the commander, sometimes included in the genus Limenitis, is a medium-sized, strikingly coloured brush-footed butterfly found in South Asia and Southeast Asia. It is notable for the mode of concealment employed by its caterpillar and the cryptic camouflage of its pupa. Description The commander has a wingspan of about . The upperside of its wings are a bright reddish brown. Towards the centre of the wing are broad white spots. In flight, one can see a bright red brown butterfly with a white band forming a V shape. There are also a few white spots scattered on the wings. Its hindwings have crenulated margins. The undersides of the wings are a whitish grey toward the base and have a row of dull reddish brown and a row of black spots along the margins. The male and female are similar in appearance. Range Subspecies: M. p. procris Central India, Sikkim to South China, Thailand, South Myanmar, Cambodia, Indo-China M. p. calidosa (Moore, 1858) Ceylon M. p. anarta (Moore, 1877) Andaman Islands M. p. arnoldi (Fruhstorfer, 1898) Bawean, Kangean Islands M. p. undifragus (Fruhstorfer, 1906) South India M. p. milonia (Fruhstorfer, 1906) Peninsular Malaya, Thailand M. p. minoe (Fruhstorfer, 1906) Sumatra M. p. batuna (Fruhstorfer, 1906) Batu Islands M. p. aemonia (Weymer, 1883) Nias M. p. agnata (Fruhstorfer, 1897) Borneo M. p. neutra (Fruhstorfer, 1897) Java, Bali, Lombok M. p. laubenheimeri (Hagen, 1898) Mentawai Islands M. p. sumbawana (Fruhstorfer, 1913) Sumbawa M. p. sumbana (Fruhstorfer, 1913) Sumba M. p. floresiana (Fruhstorfer, 1906) Flores M. p. bankana (Fruhstorfer, 1913) Bangka Island M. p. florensis (Fruhstorfer, 1913) Flores M. p. tioma Eliot, 1978 Pulau Tioman Range within India Sri Lanka, Peninsular India, the Himalayas east of the Dun valley, through Kumaon, Nepal, Sikkim to Assam, Arunachal, and onto Myanmar. Locally abundant, it is common from Sri Lanka to Maharashtra. It is rare in Gujarat and far more common in the Himalayas. Ecology The commander is generally found in forested regions having moderate to heavy rainfall. It usually keeps to low elevations, that is, up to into the hills. It is fond of open glades, roadsides and clearings in forests. It is abundant along watercourses in dry and moist deciduous forests. It is also found close to villages or wherever its larval host plant Mussaenda frondosa is found. It is most common in the post-monsoon months and winter. The commander can often be spotted basking with its wings pressed flat on exposed stones in streambeds. Individuals settle down on an exposed perch high up in the trees during the heat of the day. At this time it can be seen defending its territory and driving intruding butterflies away. This butterfly has a swift flight with rapid wingbeats and alternate spurts of smooth gliding. A powerful flier, it nevertheless flies for short distances at a time. Being wary, it maintains its distance and is best caught when engrossed in mud-puddling or feeding from flowers. It regularly visits flowers from low-lying herbs to high up in the trees. Though this is a mud-puddling species, in Borneo and probably elsewhere, adults do not visit carrion or old fruit to drink liquids. Host plants Most of the larval host plants belong to the family Rubiaceae. Cadaba fruticosa Grewia nervosa Prunus dulcis Cinchona Mitragyna parvifolia Mussaenda frondosa Mussaenda philippica Neolamarckia cadamba Ochreinauclea missionis Wendlandia Wendlandia heynei Wendlandia thyrsoidea Hedyotis orixense Life cycle Egg The female commander lays a single egg on the underside of the tip of a leaf of the food plant. The egg is hairy and greenish and looks like a green strawberry. The egg hatches in 3 to 4 days. Caterpillar The caterpillar is dirty brown with a chestnut tinge and dark brown splotches all over. The body also bears numerous processes which help to break up its outline. The behaviour of this caterpillar is very interesting in that it is one of the species of butterfly that makes long chains of frass. It eats up part of the leaf it is on and uses bits of leaves which are strung up with silk along with droppings. The caterpillar rests on the exposed mid-rib of a leaf after removing the leafy portions on the sides. This behaviour may be to dissuade ants from crossing over the chain of frass behind which the caterpillar rests. Pupa Before pupating, the caterpillar wanders around, often far away from the plant it fed on. It pupates among dried leaves and twigs. The pupa is brownish and rough in texture. It is angular with prominent wing expansions and bears flat processes on the head which curl together making a hole between them. It also has numerous lines and markings that make it look like a rolled up dried leaf. Footnotes References Hamer, K.C.; Hill, J.K.; Benedick, S.; Mustaffa, N.; Chey, V.K. & Maryati, M. (2006): Diversity and ecology of carrion- and fruit-feeding butterflies in Bornean rain forest. Journal of Tropical Ecology 22: 25–33. (HTML abstract) Robinson, Gaden, S.; Ackery, Phillip R.; Kitching, Ian J.; Beccaloni, George W. & Hernández, Luis M. (2007): HOSTS - a Database of the World's Lepidopteran Hostplants. Accessed July 2007. External links ASEAN biodiversity database Limenitidinae Butterflies of Asia Butterflies of Singapore Butterflies of Borneo Taxa named by Pieter Cramer Butterflies described in 1777
```php <?php /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the */ namespace Google\Service\ToolResults; class TestTiming extends \Google\Model { protected $testProcessDurationType = Duration::class; protected $testProcessDurationDataType = ''; /** * @param Duration */ public function setTestProcessDuration(Duration $testProcessDuration) { $this->testProcessDuration = $testProcessDuration; } /** * @return Duration */ public function getTestProcessDuration() { return $this->testProcessDuration; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(TestTiming::class, 'Google_Service_ToolResults_TestTiming'); ```
```scss // // Glyphicons for Bootstrap // // Since icons are fonts, they can be placed anywhere text is placed and are // thus automatically sized to match the surrounding child. To use, create an // inline element with the appropriate classes, like so: // // <a href="#"><span class="glyphicon glyphicon-star"></span> Star</a> @at-root { // Import the fonts @font-face { font-family: "Glyphicons Halflings"; src: url(if($bootstrap-sass-asset-helper, twbs-font-path("#{$icon-font-path}#{$icon-font-name}.eot"), "#{$icon-font-path}#{$icon-font-name}.eot")); src: url(if($bootstrap-sass-asset-helper, twbs-font-path("#{$icon-font-path}#{$icon-font-name}.eot?#iefix"), "#{$icon-font-path}#{$icon-font-name}.eot?#iefix")) format("embedded-opentype"), url(if($bootstrap-sass-asset-helper, twbs-font-path("#{$icon-font-path}#{$icon-font-name}.woff2"), "#{$icon-font-path}#{$icon-font-name}.woff2")) format("woff2"), url(if($bootstrap-sass-asset-helper, twbs-font-path("#{$icon-font-path}#{$icon-font-name}.woff"), "#{$icon-font-path}#{$icon-font-name}.woff")) format("woff"), url(if($bootstrap-sass-asset-helper, twbs-font-path("#{$icon-font-path}#{$icon-font-name}.ttf"), "#{$icon-font-path}#{$icon-font-name}.ttf")) format("truetype"), url(if($bootstrap-sass-asset-helper, twbs-font-path("#{$icon-font-path}#{$icon-font-name}.svg##{$icon-font-svg-id}"), "#{$icon-font-path}#{$icon-font-name}.svg##{$icon-font-svg-id}")) format("svg"); } } // Catchall baseclass .glyphicon { position: relative; top: 1px; display: inline-block; font-family: "Glyphicons Halflings"; font-style: normal; font-weight: 400; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } // Individual icons .glyphicon-asterisk { &:before { content: "\002a"; } } .glyphicon-plus { &:before { content: "\002b"; } } .glyphicon-euro, .glyphicon-eur { &:before { content: "\20ac"; } } .glyphicon-minus { &:before { content: "\2212"; } } .glyphicon-cloud { &:before { content: "\2601"; } } .glyphicon-envelope { &:before { content: "\2709"; } } .glyphicon-pencil { &:before { content: "\270f"; } } .glyphicon-glass { &:before { content: "\e001"; } } .glyphicon-music { &:before { content: "\e002"; } } .glyphicon-search { &:before { content: "\e003"; } } .glyphicon-heart { &:before { content: "\e005"; } } .glyphicon-star { &:before { content: "\e006"; } } .glyphicon-star-empty { &:before { content: "\e007"; } } .glyphicon-user { &:before { content: "\e008"; } } .glyphicon-film { &:before { content: "\e009"; } } .glyphicon-th-large { &:before { content: "\e010"; } } .glyphicon-th { &:before { content: "\e011"; } } .glyphicon-th-list { &:before { content: "\e012"; } } .glyphicon-ok { &:before { content: "\e013"; } } .glyphicon-remove { &:before { content: "\e014"; } } .glyphicon-zoom-in { &:before { content: "\e015"; } } .glyphicon-zoom-out { &:before { content: "\e016"; } } .glyphicon-off { &:before { content: "\e017"; } } .glyphicon-signal { &:before { content: "\e018"; } } .glyphicon-cog { &:before { content: "\e019"; } } .glyphicon-trash { &:before { content: "\e020"; } } .glyphicon-home { &:before { content: "\e021"; } } .glyphicon-file { &:before { content: "\e022"; } } .glyphicon-time { &:before { content: "\e023"; } } .glyphicon-road { &:before { content: "\e024"; } } .glyphicon-download-alt { &:before { content: "\e025"; } } .glyphicon-download { &:before { content: "\e026"; } } .glyphicon-upload { &:before { content: "\e027"; } } .glyphicon-inbox { &:before { content: "\e028"; } } .glyphicon-play-circle { &:before { content: "\e029"; } } .glyphicon-repeat { &:before { content: "\e030"; } } .glyphicon-refresh { &:before { content: "\e031"; } } .glyphicon-list-alt { &:before { content: "\e032"; } } .glyphicon-lock { &:before { content: "\e033"; } } .glyphicon-flag { &:before { content: "\e034"; } } .glyphicon-headphones { &:before { content: "\e035"; } } .glyphicon-volume-off { &:before { content: "\e036"; } } .glyphicon-volume-down { &:before { content: "\e037"; } } .glyphicon-volume-up { &:before { content: "\e038"; } } .glyphicon-qrcode { &:before { content: "\e039"; } } .glyphicon-barcode { &:before { content: "\e040"; } } .glyphicon-tag { &:before { content: "\e041"; } } .glyphicon-tags { &:before { content: "\e042"; } } .glyphicon-book { &:before { content: "\e043"; } } .glyphicon-bookmark { &:before { content: "\e044"; } } .glyphicon-print { &:before { content: "\e045"; } } .glyphicon-camera { &:before { content: "\e046"; } } .glyphicon-font { &:before { content: "\e047"; } } .glyphicon-bold { &:before { content: "\e048"; } } .glyphicon-italic { &:before { content: "\e049"; } } .glyphicon-text-height { &:before { content: "\e050"; } } .glyphicon-text-width { &:before { content: "\e051"; } } .glyphicon-align-left { &:before { content: "\e052"; } } .glyphicon-align-center { &:before { content: "\e053"; } } .glyphicon-align-right { &:before { content: "\e054"; } } .glyphicon-align-justify { &:before { content: "\e055"; } } .glyphicon-list { &:before { content: "\e056"; } } .glyphicon-indent-left { &:before { content: "\e057"; } } .glyphicon-indent-right { &:before { content: "\e058"; } } .glyphicon-facetime-video { &:before { content: "\e059"; } } .glyphicon-picture { &:before { content: "\e060"; } } .glyphicon-map-marker { &:before { content: "\e062"; } } .glyphicon-adjust { &:before { content: "\e063"; } } .glyphicon-tint { &:before { content: "\e064"; } } .glyphicon-edit { &:before { content: "\e065"; } } .glyphicon-share { &:before { content: "\e066"; } } .glyphicon-check { &:before { content: "\e067"; } } .glyphicon-move { &:before { content: "\e068"; } } .glyphicon-step-backward { &:before { content: "\e069"; } } .glyphicon-fast-backward { &:before { content: "\e070"; } } .glyphicon-backward { &:before { content: "\e071"; } } .glyphicon-play { &:before { content: "\e072"; } } .glyphicon-pause { &:before { content: "\e073"; } } .glyphicon-stop { &:before { content: "\e074"; } } .glyphicon-forward { &:before { content: "\e075"; } } .glyphicon-fast-forward { &:before { content: "\e076"; } } .glyphicon-step-forward { &:before { content: "\e077"; } } .glyphicon-eject { &:before { content: "\e078"; } } .glyphicon-chevron-left { &:before { content: "\e079"; } } .glyphicon-chevron-right { &:before { content: "\e080"; } } .glyphicon-plus-sign { &:before { content: "\e081"; } } .glyphicon-minus-sign { &:before { content: "\e082"; } } .glyphicon-remove-sign { &:before { content: "\e083"; } } .glyphicon-ok-sign { &:before { content: "\e084"; } } .glyphicon-question-sign { &:before { content: "\e085"; } } .glyphicon-info-sign { &:before { content: "\e086"; } } .glyphicon-screenshot { &:before { content: "\e087"; } } .glyphicon-remove-circle { &:before { content: "\e088"; } } .glyphicon-ok-circle { &:before { content: "\e089"; } } .glyphicon-ban-circle { &:before { content: "\e090"; } } .glyphicon-arrow-left { &:before { content: "\e091"; } } .glyphicon-arrow-right { &:before { content: "\e092"; } } .glyphicon-arrow-up { &:before { content: "\e093"; } } .glyphicon-arrow-down { &:before { content: "\e094"; } } .glyphicon-share-alt { &:before { content: "\e095"; } } .glyphicon-resize-full { &:before { content: "\e096"; } } .glyphicon-resize-small { &:before { content: "\e097"; } } .glyphicon-exclamation-sign { &:before { content: "\e101"; } } .glyphicon-gift { &:before { content: "\e102"; } } .glyphicon-leaf { &:before { content: "\e103"; } } .glyphicon-fire { &:before { content: "\e104"; } } .glyphicon-eye-open { &:before { content: "\e105"; } } .glyphicon-eye-close { &:before { content: "\e106"; } } .glyphicon-warning-sign { &:before { content: "\e107"; } } .glyphicon-plane { &:before { content: "\e108"; } } .glyphicon-calendar { &:before { content: "\e109"; } } .glyphicon-random { &:before { content: "\e110"; } } .glyphicon-comment { &:before { content: "\e111"; } } .glyphicon-magnet { &:before { content: "\e112"; } } .glyphicon-chevron-up { &:before { content: "\e113"; } } .glyphicon-chevron-down { &:before { content: "\e114"; } } .glyphicon-retweet { &:before { content: "\e115"; } } .glyphicon-shopping-cart { &:before { content: "\e116"; } } .glyphicon-folder-close { &:before { content: "\e117"; } } .glyphicon-folder-open { &:before { content: "\e118"; } } .glyphicon-resize-vertical { &:before { content: "\e119"; } } .glyphicon-resize-horizontal { &:before { content: "\e120"; } } .glyphicon-hdd { &:before { content: "\e121"; } } .glyphicon-bullhorn { &:before { content: "\e122"; } } .glyphicon-bell { &:before { content: "\e123"; } } .glyphicon-certificate { &:before { content: "\e124"; } } .glyphicon-thumbs-up { &:before { content: "\e125"; } } .glyphicon-thumbs-down { &:before { content: "\e126"; } } .glyphicon-hand-right { &:before { content: "\e127"; } } .glyphicon-hand-left { &:before { content: "\e128"; } } .glyphicon-hand-up { &:before { content: "\e129"; } } .glyphicon-hand-down { &:before { content: "\e130"; } } .glyphicon-circle-arrow-right { &:before { content: "\e131"; } } .glyphicon-circle-arrow-left { &:before { content: "\e132"; } } .glyphicon-circle-arrow-up { &:before { content: "\e133"; } } .glyphicon-circle-arrow-down { &:before { content: "\e134"; } } .glyphicon-globe { &:before { content: "\e135"; } } .glyphicon-wrench { &:before { content: "\e136"; } } .glyphicon-tasks { &:before { content: "\e137"; } } .glyphicon-filter { &:before { content: "\e138"; } } .glyphicon-briefcase { &:before { content: "\e139"; } } .glyphicon-fullscreen { &:before { content: "\e140"; } } .glyphicon-dashboard { &:before { content: "\e141"; } } .glyphicon-paperclip { &:before { content: "\e142"; } } .glyphicon-heart-empty { &:before { content: "\e143"; } } .glyphicon-link { &:before { content: "\e144"; } } .glyphicon-phone { &:before { content: "\e145"; } } .glyphicon-pushpin { &:before { content: "\e146"; } } .glyphicon-usd { &:before { content: "\e148"; } } .glyphicon-gbp { &:before { content: "\e149"; } } .glyphicon-sort { &:before { content: "\e150"; } } .glyphicon-sort-by-alphabet { &:before { content: "\e151"; } } .glyphicon-sort-by-alphabet-alt { &:before { content: "\e152"; } } .glyphicon-sort-by-order { &:before { content: "\e153"; } } .glyphicon-sort-by-order-alt { &:before { content: "\e154"; } } .glyphicon-sort-by-attributes { &:before { content: "\e155"; } } .glyphicon-sort-by-attributes-alt { &:before { content: "\e156"; } } .glyphicon-unchecked { &:before { content: "\e157"; } } .glyphicon-expand { &:before { content: "\e158"; } } .glyphicon-collapse-down { &:before { content: "\e159"; } } .glyphicon-collapse-up { &:before { content: "\e160"; } } .glyphicon-log-in { &:before { content: "\e161"; } } .glyphicon-flash { &:before { content: "\e162"; } } .glyphicon-log-out { &:before { content: "\e163"; } } .glyphicon-new-window { &:before { content: "\e164"; } } .glyphicon-record { &:before { content: "\e165"; } } .glyphicon-save { &:before { content: "\e166"; } } .glyphicon-open { &:before { content: "\e167"; } } .glyphicon-saved { &:before { content: "\e168"; } } .glyphicon-import { &:before { content: "\e169"; } } .glyphicon-export { &:before { content: "\e170"; } } .glyphicon-send { &:before { content: "\e171"; } } .glyphicon-floppy-disk { &:before { content: "\e172"; } } .glyphicon-floppy-saved { &:before { content: "\e173"; } } .glyphicon-floppy-remove { &:before { content: "\e174"; } } .glyphicon-floppy-save { &:before { content: "\e175"; } } .glyphicon-floppy-open { &:before { content: "\e176"; } } .glyphicon-credit-card { &:before { content: "\e177"; } } .glyphicon-transfer { &:before { content: "\e178"; } } .glyphicon-cutlery { &:before { content: "\e179"; } } .glyphicon-header { &:before { content: "\e180"; } } .glyphicon-compressed { &:before { content: "\e181"; } } .glyphicon-earphone { &:before { content: "\e182"; } } .glyphicon-phone-alt { &:before { content: "\e183"; } } .glyphicon-tower { &:before { content: "\e184"; } } .glyphicon-stats { &:before { content: "\e185"; } } .glyphicon-sd-video { &:before { content: "\e186"; } } .glyphicon-hd-video { &:before { content: "\e187"; } } .glyphicon-subtitles { &:before { content: "\e188"; } } .glyphicon-sound-stereo { &:before { content: "\e189"; } } .glyphicon-sound-dolby { &:before { content: "\e190"; } } .glyphicon-sound-5-1 { &:before { content: "\e191"; } } .glyphicon-sound-6-1 { &:before { content: "\e192"; } } .glyphicon-sound-7-1 { &:before { content: "\e193"; } } .glyphicon-copyright-mark { &:before { content: "\e194"; } } .glyphicon-registration-mark { &:before { content: "\e195"; } } .glyphicon-cloud-download { &:before { content: "\e197"; } } .glyphicon-cloud-upload { &:before { content: "\e198"; } } .glyphicon-tree-conifer { &:before { content: "\e199"; } } .glyphicon-tree-deciduous { &:before { content: "\e200"; } } .glyphicon-cd { &:before { content: "\e201"; } } .glyphicon-save-file { &:before { content: "\e202"; } } .glyphicon-open-file { &:before { content: "\e203"; } } .glyphicon-level-up { &:before { content: "\e204"; } } .glyphicon-copy { &:before { content: "\e205"; } } .glyphicon-paste { &:before { content: "\e206"; } } // The following 2 Glyphicons are omitted for the time being because // they currently use Unicode codepoints that are outside the // Basic Multilingual Plane (BMP). Older buggy versions of WebKit can't handle // non-BMP codepoints in CSS string escapes, and thus can't display these two icons. // Notably, the bug affects some older versions of the Android Browser. // More info: path_to_url // .glyphicon-door { &:before { content: "\1f6aa"; } } // .glyphicon-key { &:before { content: "\1f511"; } } .glyphicon-alert { &:before { content: "\e209"; } } .glyphicon-equalizer { &:before { content: "\e210"; } } .glyphicon-king { &:before { content: "\e211"; } } .glyphicon-queen { &:before { content: "\e212"; } } .glyphicon-pawn { &:before { content: "\e213"; } } .glyphicon-bishop { &:before { content: "\e214"; } } .glyphicon-knight { &:before { content: "\e215"; } } .glyphicon-baby-formula { &:before { content: "\e216"; } } .glyphicon-tent { &:before { content: "\26fa"; } } .glyphicon-blackboard { &:before { content: "\e218"; } } .glyphicon-bed { &:before { content: "\e219"; } } .glyphicon-apple { &:before { content: "\f8ff"; } } .glyphicon-erase { &:before { content: "\e221"; } } .glyphicon-hourglass { &:before { content: "\231b"; } } .glyphicon-lamp { &:before { content: "\e223"; } } .glyphicon-duplicate { &:before { content: "\e224"; } } .glyphicon-piggy-bank { &:before { content: "\e225"; } } .glyphicon-scissors { &:before { content: "\e226"; } } .glyphicon-bitcoin { &:before { content: "\e227"; } } .glyphicon-btc { &:before { content: "\e227"; } } .glyphicon-xbt { &:before { content: "\e227"; } } .glyphicon-yen { &:before { content: "\00a5"; } } .glyphicon-jpy { &:before { content: "\00a5"; } } .glyphicon-ruble { &:before { content: "\20bd"; } } .glyphicon-rub { &:before { content: "\20bd"; } } .glyphicon-scale { &:before { content: "\e230"; } } .glyphicon-ice-lolly { &:before { content: "\e231"; } } .glyphicon-ice-lolly-tasted { &:before { content: "\e232"; } } .glyphicon-education { &:before { content: "\e233"; } } .glyphicon-option-horizontal { &:before { content: "\e234"; } } .glyphicon-option-vertical { &:before { content: "\e235"; } } .glyphicon-menu-hamburger { &:before { content: "\e236"; } } .glyphicon-modal-window { &:before { content: "\e237"; } } .glyphicon-oil { &:before { content: "\e238"; } } .glyphicon-grain { &:before { content: "\e239"; } } .glyphicon-sunglasses { &:before { content: "\e240"; } } .glyphicon-text-size { &:before { content: "\e241"; } } .glyphicon-text-color { &:before { content: "\e242"; } } .glyphicon-text-background { &:before { content: "\e243"; } } .glyphicon-object-align-top { &:before { content: "\e244"; } } .glyphicon-object-align-bottom { &:before { content: "\e245"; } } .glyphicon-object-align-horizontal{ &:before { content: "\e246"; } } .glyphicon-object-align-left { &:before { content: "\e247"; } } .glyphicon-object-align-vertical { &:before { content: "\e248"; } } .glyphicon-object-align-right { &:before { content: "\e249"; } } .glyphicon-triangle-right { &:before { content: "\e250"; } } .glyphicon-triangle-left { &:before { content: "\e251"; } } .glyphicon-triangle-bottom { &:before { content: "\e252"; } } .glyphicon-triangle-top { &:before { content: "\e253"; } } .glyphicon-console { &:before { content: "\e254"; } } .glyphicon-superscript { &:before { content: "\e255"; } } .glyphicon-subscript { &:before { content: "\e256"; } } .glyphicon-menu-left { &:before { content: "\e257"; } } .glyphicon-menu-right { &:before { content: "\e258"; } } .glyphicon-menu-down { &:before { content: "\e259"; } } .glyphicon-menu-up { &:before { content: "\e260"; } } ```
The Nuclear Studies Institute was founded in 1995 at American University in Washington, D.C. as a component of the American University College of Arts and Sciences. The purpose of the Institute is to educate American University graduate and undergraduate students, as well as the general public, about the key points of nuclear history, nuclear culture in the United States, and the threats still posed by nuclear weapons in the modern world. Under the direction of Dr. Peter Kuznick, the Institute runs during the University summer session, offering on-campus classes dealing with American nuclear culture and also a two-week study trip to Japan. In Japan, American University students, along with other American and Canadian students, travel and study alongside Japanese students, mainly from Ritsumeikan University as well as other universities in Japan and the region. The study tours the cities of Kyoto, Hiroshima, and Nagasaki, where the students hear lectures, visit landmarks, and attend the memorial ceremonies for the atomic bombings of Hiroshima and Nagasaki, as well as their respective peace museums, in an effort to foster closer ties on both sides of the Pacific. The 2010 Nuclear Studies Institute trip to Japan was covered by NHK, Japan's national broadcasting corporation, and broadcast on Japanese television and featured on the NHK program “Japan Seven Days.” The Institute provides participants to hear many stories of the hibakusha (被爆者, literally “explosion-affected people"), including those of Koko Kondo, peace activist, American University graduate, and daughter of Reverend Kiyoshi Tanimoto, who figures heavily in John Hersey’s Hiroshima. Tadatoshi Akiba, mayor of Hiroshima and president of the Mayors for Peace organization, also regularly meets with the participants during their study in Hiroshima. The Institute participates in the Nuclear Education Project; a worldwide effort to improve access to teaching and learning materials regarding the history of the nuclear arms race and the ongoing movement to curb the proliferation of nuclear weapons. The Nuclear Education Project was founded in 2004 by Dr. Peter Kuznick, Mayor Tadatoshi Akiba, Dr. John W. Dower of MIT and Dr. Mark Selden. Staff Peter J Kuznick, Director Kana Kobayashi, Outreach Liaison See also American University Article 9 of the Japanese Constitution Campaign for Nuclear Disarmament Comprehensive Test Ban Treaty Nuclear arms race Nuclear-free zone Nuclear Non-Proliferation Treaty Nuclear proliferation Nuclear warfare Nuclear weapon References American University
```php <?php /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the */ namespace Google\Service\CloudVideoIntelligence; class GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation extends \Google\Collection { protected $collection_key = 'frames'; protected $framesType = GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame::class; protected $framesDataType = 'array'; /** * @var string */ public $version; /** * @param GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame[] */ public function setFrames($frames) { $this->frames = $frames; } /** * @return GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame[] */ public function getFrames() { return $this->frames; } /** * @param string */ public function setVersion($version) { $this->version = $version; } /** * @return string */ public function getVersion() { return $this->version; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation::class, your_sha256_hashceV1p2beta1ExplicitContentAnnotation'); ```
A stube (stiva (Romansh), stüa (Ladin)) is the traditional living area of the German-speaking Alpine areas (Austria, Germany, Switzerland, and the Italian regions of Valtellina, South Tyrol, Trentino and Ladinia). It is a room heated by a large stone or tile-covered stove and entirely lined with wood to keep the heat inside; the woods mostly used for the wall panels are chestnut, walnut, spruce, and Swiss pine. The logs are inserted into the stove through a small door that opens on an adjacent room, usually the kitchen or the corridor. In the beginning, the term stube was used to indicate a room heated by a stove where the family would gather to chat, sew, weave, pray, and even sleep. Beyond their original function, during the Middle Ages, richly decorated stüe quickly became status symbols serving as a "state room" in noble houses, where guests were welcomed, private or community notarial deeds were drawn up, and meetings were held. In another sense derived from the concept of "heated room", it used to refer to a bathing room, giving rise to German occupational surnames Stübler/Stubler, Stüberer, Stübner, Stuber for "stube-keeper". The word is also part a number of compound words, for rooms of some specific kind, such as Bierstube, "beer hall", etc., see wikt:Stube. See also Farmhouse kitchen Parlor References Rooms
```asciidoc // // Common Valid Usage // Common to micromap build commands * [[VUID-{refpage}-pInfos-07461]] For each pname:pInfos[i], pname:dstMicromap must: have been created with a value of slink:VkMicromapCreateInfoEXT::pname:size greater than or equal to the memory size required by the build operation, as returned by flink:vkGetMicromapBuildSizesEXT with [eq]#pname:pBuildInfo = pname:pInfos[i]# * [[VUID-{refpage}-mode-07462]] The pname:mode member of each element of pname:pInfos must: be a valid elink:VkBuildMicromapModeEXT value * [[VUID-{refpage}-dstMicromap-07463]] The pname:dstMicromap member of any element of pname:pInfos must: be a valid slink:VkMicromapEXT handle * [[VUID-{refpage}-pInfos-07464]] For each element of pname:pInfos its pname:type member must: match the value of slink:VkMicromapCreateInfoEXT::pname:type when its pname:dstMicromap was created * [[VUID-{refpage}-dstMicromap-07465]] The range of memory backing the pname:dstMicromap member of any element of pname:pInfos that is accessed by this command must: not overlap the memory backing the pname:dstMicromap member of any other element of pname:pInfos, which is accessed by this command * [[VUID-{refpage}-dstMicromap-07466]] The range of memory backing the pname:dstMicromap member of any element of pname:pInfos that is accessed by this command must: not overlap the memory backing the pname:scratchData member of any element of pname:pInfos (including the same element), which is accessed by this command * [[VUID-{refpage}-scratchData-07467]] The range of memory backing the pname:scratchData member of any element of pname:pInfos that is accessed by this command must: not overlap the memory backing the pname:scratchData member of any other element of pname:pInfos, which is accessed by this command // Common Valid Usage ```
Banjar Margo is a district (kecamatan) located in the Tulang Bawang Regency of Lampung Province in Sumatra, Indonesia. Border The district of Banjar Margo is bordered as follows: North - Mesuji Regency South - Banjar Agung District West - West Tulang Bawang Regency East - Gedung Aji District. References External links Tulang Bawang Regency Districts of Lampung
The Rosario River is a river in Argentina. See also List of rivers of Argentina References Rand McNally, The New International Atlas, 1993. GEOnet Names Server Rivers of Argentina Rivers of Salta Province
```java package mono.android; class GCUserPeer implements IGCUserPeer { private java.util.ArrayList refList = null; public void monodroidAddReference (java.lang.Object obj) { if (refList == null) refList = new java.util.ArrayList (); refList.add (obj); } public void monodroidClearReferences () { if (refList != null) refList.clear (); } } ```
```scala package com.ceshiren.appcrawler.model import com.ceshiren.appcrawler.utils.Log.log import com.ceshiren.appcrawler.utils.TData import org.junit.jupiter.api.Test import scala.collection.mutable class BDDTestCaseTest { @Test def runStep() { val step1 = mutable.HashMap[String, Any]() step1.put("find", null) val step2 = mutable.HashMap[String, Any]() step2.put("find", "11") val step3 = mutable.HashMap[String, Any]() step3.put("find", step2) val testcase1 = BDDTestCase(when = List(step1.toMap, step2.toMap, step3.toMap)) val str = TData.toYaml(testcase1) log.info(str) val testcase2 = TData.fromYaml[BDDTestCase](str) log.info(testcase2) } @Test def mockDriver(){ val yamlStr = s""" |when: |- driver: mock |- chrome: |- get: path_to_url |- click: { id: search-button } |- find: { id: search-term } |- sendKeys: appium demo |- find: { id: search-term } |- shell: | format: | - "echo {} {}" | - | - attribute: text | - end | |""".stripMargin val yamlObject = TData.fromYaml[BDDTestCase](yamlStr) log.info(yamlObject) yamlObject.run() } @Test def seleniumDriver(){ val yamlStr = s""" |when: |- driver: selenium |- chrome: |- get: path_to_url |- click: { id: search-button } |- find: { id: search-term } |- sendKeys: appium demo |- find: { id: search-term } |- shell: | concat: | - echo | - attribute: text | - end | |""".stripMargin val yamlObject = TData.fromYaml[BDDTestCase](yamlStr) log.info(yamlObject) yamlObject.run() } @Test def dynamic(): Unit = { log.info(this) log.info(this.getClass) this.getClass.getDeclaredMethods.foreach(method => { method.getParameterTypes.foreach(p => { log.info(p) }) }) } } ```
```go //go:build go1.7 // +build go1.7 package jsonrpc import ( "bytes" "encoding/hex" "io/ioutil" "net/http" "reflect" "strings" "testing" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" ) const unknownErrJSON = `{"__type":"UnknownError", "message":"error message", "something":123}` const simpleErrJSON = `{"__type":"SimpleError", "message":"some message", "foo":123}` const simpleCasedErrJSON = `{"__type":"SimpleError", "Message":"some message", "foo":123}` type SimpleError struct { _ struct{} `type:"structure"` error Message2 *string `type:"string" locationName:"message"` Foo *int64 `type:"integer" locationName:"foo"` } const otherErrJSON = `{"__type":"OtherError", "message":"some message"}` const complexCodeErrJSON = `{"__type":"foo.bar#OtherError", "message":"some message"}` type OtherError struct { _ struct{} `type:"structure"` error Message2 *string `type:"string" locationName:"message"` } const complexErrJSON = `{"__type":"ComplexError", "message":"some message", "foo": {"bar":"abc123", "baz":123}}` type ComplexError struct { _ struct{} `type:"structure"` error Message2 *string `type:"string" locationName:"message"` Foo *ErrorNested `type:"structure" locationName:"foo"` } type ErrorNested struct { _ struct{} `type:"structure"` Bar *string `type:"string" locationName:"bar"` Baz *int64 `type:"integer" locationName:"baz"` } func TestUnmarshalTypedError(t *testing.T) { respMeta := protocol.ResponseMetadata{ StatusCode: 400, RequestID: "abc123", } exceptions := map[string]func(protocol.ResponseMetadata) error{ "SimpleError": func(meta protocol.ResponseMetadata) error { return &SimpleError{} }, "OtherError": func(meta protocol.ResponseMetadata) error { return &OtherError{} }, "ComplexError": func(meta protocol.ResponseMetadata) error { return &ComplexError{} }, } cases := map[string]struct { Response *http.Response Expect error Err string }{ "simple error": { Response: &http.Response{ Header: http.Header{}, Body: ioutil.NopCloser(strings.NewReader(simpleErrJSON)), }, Expect: &SimpleError{ Message2: aws.String("some message"), Foo: aws.Int64(123), }, }, "other error": { Response: &http.Response{ Header: http.Header{}, Body: ioutil.NopCloser(strings.NewReader(otherErrJSON)), }, Expect: &OtherError{ Message2: aws.String("some message"), }, }, "other complex Code error": { Response: &http.Response{ Header: http.Header{}, Body: ioutil.NopCloser(strings.NewReader(complexCodeErrJSON)), }, Expect: &OtherError{ Message2: aws.String("some message"), }, }, "complex error": { Response: &http.Response{ Header: http.Header{}, Body: ioutil.NopCloser(strings.NewReader(complexErrJSON)), }, Expect: &ComplexError{ Message2: aws.String("some message"), Foo: &ErrorNested{ Bar: aws.String("abc123"), Baz: aws.Int64(123), }, }, }, "unknown error": { Response: &http.Response{ Header: http.Header{}, Body: ioutil.NopCloser(strings.NewReader(unknownErrJSON)), }, Expect: awserr.NewRequestFailure( awserr.New("UnknownError", "error message", nil), respMeta.StatusCode, respMeta.RequestID, ), }, "invalid error": { Response: &http.Response{ StatusCode: 400, Header: http.Header{}, Body: ioutil.NopCloser(strings.NewReader(`{`)), }, Err: "failed decoding", }, "mixed case fields": { Response: &http.Response{ Header: http.Header{}, Body: ioutil.NopCloser(strings.NewReader(simpleCasedErrJSON)), }, Expect: &SimpleError{ Message2: aws.String("some message"), Foo: aws.Int64(123), }, }, } for name, c := range cases { t.Run(name, func(t *testing.T) { u := NewUnmarshalTypedError(exceptions) v, err := u.UnmarshalError(c.Response, respMeta) if len(c.Err) != 0 { if err == nil { t.Fatalf("expect error, got none") } if e, a := c.Err, err.Error(); !strings.Contains(a, e) { t.Fatalf("expect %v in error, got %v", e, a) } } else if err != nil { t.Fatalf("expect no error, got %v", err) } if e, a := c.Expect, v; !reflect.DeepEqual(e, a) { t.Errorf("expect %+#v, got %#+v", e, a) } }) } } func TestUnmarshalError_SerializationError(t *testing.T) { cases := map[string]struct { Request *request.Request ExpectMsg string ExpectBytes []byte }{ "empty body": { Request: &request.Request{ Data: &struct{}{}, HTTPResponse: &http.Response{ StatusCode: 400, Header: http.Header{ "X-Amzn-Requestid": []string{"abc123"}, }, Body: ioutil.NopCloser( bytes.NewReader([]byte{}), ), }, }, ExpectMsg: "error message missing", }, "HTML body": { Request: &request.Request{ Data: &struct{}{}, HTTPResponse: &http.Response{ StatusCode: 400, Header: http.Header{ "X-Amzn-Requestid": []string{"abc123"}, }, Body: ioutil.NopCloser( bytes.NewReader([]byte(`<html></html>`)), ), }, }, ExpectBytes: []byte(`<html></html>`), ExpectMsg: "failed decoding", }, } for name, c := range cases { t.Run(name, func(t *testing.T) { req := c.Request UnmarshalError(req) if req.Error == nil { t.Fatal("expect error, got none") } aerr := req.Error.(awserr.RequestFailure) if e, a := request.ErrCodeSerialization, aerr.Code(); e != a { t.Errorf("expect %v, got %v", e, a) } uerr := aerr.OrigErr().(awserr.UnmarshalError) if e, a := c.ExpectMsg, uerr.Message(); !strings.Contains(a, e) { t.Errorf("Expect %q, in %q", e, a) } if e, a := c.ExpectBytes, uerr.Bytes(); !bytes.Equal(e, a) { t.Errorf("expect:\n%v\nactual:\n%v", hex.Dump(e), hex.Dump(a)) } }) } } ```
Linguere Ndoye Demba Joos Fadiou, also known as Ndoye Demba in Senegambian dynastic history, was a Serer princess from the Kingdom of Sine (now part of present-day Senegal), from the later half of the 14th century to the 15th century. The royal title – "Lingeer" means Queen or Royal Princess. She was given in marriage to the Brak of Waalo – Caaka Mbaar Mbooj (variation : Brac Thiaka Mbar). The surname Mbooj is the English spelling in the Gambia, variation include Mboge. In French speaking Senegal, it is spelt Mbodj. Differences in spelling is due to the colonial past of the Gambia and Senegal. France colonized Senegal, whilst Britain colonized the Gambia, thus the division of the two countries. Caaka Mbaar was the second king of Waalo from the Mbooj patrilineage, who ruled in the second half of the 14th century, around 1367. Brak was the title of the kings of Waalo. Lingeer Ndoye Demba was the founder of the Serer Joos Maternal Dynasty (variations : Dyoss, Diouss-Fahou, Dious-Fadiou, Dieuss, Dihosou, also "Diouss" – the French spelling in Senegal) of Waalo. In the Wolof Kingdom of Waalo, Lingeer Ndoye Demba is considered the matriarch of the Joos maternal clan. In the Serer Kingdom of Sine, it is her grandmother Lingeer Fatim Beye (variations : Fa-tim Beye or Fatimata Beye) who is considered to be the matriarch of this maternal dynasty. In the Serer language, the word "Fa-tim" means "the maternal clan of ... ". The Serer surname Beye (var : Bèye) is also one of the many Serer maternal clans. Marriage and legacy Lingeer Ndoye Demba's marriage to Brak Caaka Mbaar took place in the Kingdom of Sine (the country of her birth). She was given in marriage to the King of Waalo during his visit to Sine. After the marriage, she accompanied her husband to the Kingdom of Waalo where she received great hostility from the two established maternal clans : the Tedyek Maternal Dynasty (of Fula origin) and the Loggar Maternal Dynasty (of Moor origin). The king's mother was a Loggar and his first wife (Lingeer-Awo Yassin Tanor) was a Tedyek. These three maternal dynasties ruled the kingdom of Waalo with the Mbooj paternal family. For nearly six hundred years, these three maternal clans engaged in dynastic wars among themselves. The Battle of Nder (var : Ndeer) which is still celebrated in Waalo, began as a dynastic war between the Joos Maternal Dynasty (maternal descendants of Lingeer Ndoye Demba, of Serer origin) and the Tedyek, where the Joos family massacred several members of the Tedyek maternal clan. Descendants of Lingeer Ndoye Demba From the 14th century until the destruction of Waalo in 1855 during the reign of Lingeer Ndateh Yalla Mbooj many kings of Waalo came from the Joos Maternal Dynasty. Some of these include : Brak Yerim Mbanyik Ndoye Demba Mbooj, son of Lingeer Ndoye Demba. In a failed attempt to dethrone him, he defeated the Gueye and Diaw family forcing them to seek refuge in Futa Toro. Brak Mö Mbôdy Kumba Khedy Mbooj, reigned : reigned : c. 1734 – 1735. At the Battle of Nder (commonly known in Senegambia as "Talaata-i Ndeer" meaning "Tuesday of Ndeer", the day the battle took place), he commanded the Joos army and led a massacre against the Tedyek Dynasty of Waalo. After killing the Brak of Waalo, Yerim Ndateh Bubou, he ursuped his throne. Brak Amar Fatim Borso Mbooj, father of Lingeer Ndateh Yalla Mbooj and Lingeer Njombeutt Mbooj, the two sisters who dominated the political scene of Waalo in the 19th century. Reigned : c. 1812 – 1825 according to some. Though it is most probable he reigned up to 1825 or 1826, because he is reported to have died in January 1826. He entered a religious war against the Almamy of Futa Toro (Almamy Biram, var : Almamy Birani), and is reported to have said, "Brak du tuub muk" (meaning "a Brak should never convert" (to Islam), in Wolof). Genealogy The following is a brief genealogy of Linguere Ndoye Demba. Family of Lingeer Ndoye Demba Lingeer Fatim Beye (From Kingdom of Sine, Princess Royal and Queen of Sine, matriarch of the Joos Maternal Dynasty of Waalo) │ Lingeer Ndoung Jein (Princess of Sine) │ │ ___│ │ │ ┌───────────┴────────────────────────────────────────┐ Lingeer Fatim Malado │ Nancy Demba (Princess of Sine) │ (Princess of Sine) │ │ │__ │ │ Lamtoro Abraham Sall (of Futa Toro) │ │ │ │___ │ │ │ ? = Lingeer Fatoumata Sall = Mbarick Bo │ (1) │ (2) │ __│ │ │ │ Brak Barka Bo = *Lingeer Faaduma Yumeyga │ │ (Barka Mbooj, King of Waalo) │__ │ │ │ │ Ndiadiane Ndiaye = Lingeer-Awo Maram Doye Gaye = Lingeer Mbat Mboye │ │ (King of Jolof, founder of the Jolof Empire) │ (1) (daughter of Amar Gaye) │ (*3) │ │ ___│ │ │ │ │ Ware Ndiaye │ │ │ │ │ │ ___│ │ │ │ __│ │ │ │ │ Brak Caaka Mbaar Mbooj = Lingeer Ndoye Demba ┌───────────┴────────────────────────────────────────┐ (King of Waalo) │ (From Kingdom of Sine) │ │ │ │ │ (Princess of Sine, Queen of Waalo) Sare Ndiaye Guet Ndiaye Ndombuur Ndiaye Guedo Ndiaye │ (2) (King of Jolof) │ ┌───────────┴────────────────────────────────────────┐ │ │ Brak Yerim Mbanyik Ndoye Demba Mbooj Sodeh Mbooj (King of Waalo) │ │ _│ │ │ ┌───────────┴────────────────────────────────────────┐ Jummoul Diouroukh Baka Dequene = Aïssa │ │ │ │ ┌───────────┴────────────────────────────────────────┐ ┌───────────┴────────────────────────────────────────┐ │ │ │ │ │ │ │ │ │ │ Degene Mande Bo Mbody Fanta Degene Ko Khadj Yalladj Jaw Njuck Mbouneh Njuck Fary Njuck Borom Borom Mbooj Mbooj Mbooj Ndiouk │ │ Fa Mbooj Njaak See also History of Senegal History of the Gambia Kingdom of Sine Waalo Serer people Lingeer Ngoné Dièye Notes Bibliography Monteil, Vincent, " Esquisses sénégalaises", Institut Fondamental d'Afrique Noire, 1966. Barry, Boubacar, "Le royaume du waalo, le Sénégal avant la conquête", F. Maspéro (1972) Zaghi, Carlo, "L'Africa nella coscienza europea e l'imperialismo italiano", Guida (1973), p 288 Bulletin. Serie B: Sciences humaines / Institut fondamental d'Afrique noire, Volume 41. (1979) Institut français d'Afrique noire. Bulletin de l'Institut français d'Afrique noire: Sciences humaines, Volume 17. IFAN, (1955) External links Boubacar Barry, Le royaume du Waalo Serer royalty Lingeer Serer matriarchs Matriarchy 14th-century women rulers Senegalese women in politics
```go package decoder import ( "encoding/base64" "fmt" "unsafe" "github.com/goccy/go-json/internal/errors" "github.com/goccy/go-json/internal/runtime" ) type bytesDecoder struct { typ *runtime.Type sliceDecoder Decoder stringDecoder *stringDecoder structName string fieldName string } func byteUnmarshalerSliceDecoder(typ *runtime.Type, structName string, fieldName string) Decoder { var unmarshalDecoder Decoder switch { case runtime.PtrTo(typ).Implements(unmarshalJSONType): unmarshalDecoder = newUnmarshalJSONDecoder(runtime.PtrTo(typ), structName, fieldName) case runtime.PtrTo(typ).Implements(unmarshalTextType): unmarshalDecoder = newUnmarshalTextDecoder(runtime.PtrTo(typ), structName, fieldName) default: unmarshalDecoder, _ = compileUint8(typ, structName, fieldName) } return newSliceDecoder(unmarshalDecoder, typ, 1, structName, fieldName) } func newBytesDecoder(typ *runtime.Type, structName string, fieldName string) *bytesDecoder { return &bytesDecoder{ typ: typ, sliceDecoder: byteUnmarshalerSliceDecoder(typ, structName, fieldName), stringDecoder: newStringDecoder(structName, fieldName), structName: structName, fieldName: fieldName, } } func (d *bytesDecoder) DecodeStream(s *Stream, depth int64, p unsafe.Pointer) error { bytes, err := d.decodeStreamBinary(s, depth, p) if err != nil { return err } if bytes == nil { s.reset() return nil } decodedLen := base64.StdEncoding.DecodedLen(len(bytes)) buf := make([]byte, decodedLen) n, err := base64.StdEncoding.Decode(buf, bytes) if err != nil { return err } *(*[]byte)(p) = buf[:n] s.reset() return nil } func (d *bytesDecoder) Decode(ctx *RuntimeContext, cursor, depth int64, p unsafe.Pointer) (int64, error) { bytes, c, err := d.decodeBinary(ctx, cursor, depth, p) if err != nil { return 0, err } if bytes == nil { return c, nil } cursor = c decodedLen := base64.StdEncoding.DecodedLen(len(bytes)) b := make([]byte, decodedLen) n, err := base64.StdEncoding.Decode(b, bytes) if err != nil { return 0, err } *(*[]byte)(p) = b[:n] return cursor, nil } func (d *bytesDecoder) DecodePath(ctx *RuntimeContext, cursor, depth int64) ([][]byte, int64, error) { return nil, 0, fmt.Errorf("json: []byte decoder does not support decode path") } func (d *bytesDecoder) decodeStreamBinary(s *Stream, depth int64, p unsafe.Pointer) ([]byte, error) { c := s.skipWhiteSpace() if c == '[' { if d.sliceDecoder == nil { return nil, &errors.UnmarshalTypeError{ Type: runtime.RType2Type(d.typ), Offset: s.totalOffset(), } } err := d.sliceDecoder.DecodeStream(s, depth, p) return nil, err } return d.stringDecoder.decodeStreamByte(s) } func (d *bytesDecoder) decodeBinary(ctx *RuntimeContext, cursor, depth int64, p unsafe.Pointer) ([]byte, int64, error) { buf := ctx.Buf cursor = skipWhiteSpace(buf, cursor) if buf[cursor] == '[' { if d.sliceDecoder == nil { return nil, 0, &errors.UnmarshalTypeError{ Type: runtime.RType2Type(d.typ), Offset: cursor, } } c, err := d.sliceDecoder.Decode(ctx, cursor, depth, p) if err != nil { return nil, 0, err } return nil, c, nil } return d.stringDecoder.decodeByte(buf, cursor) } ```
The Américas Award for Children’s and Young Adult Literature is literary award presented annually that recognizes high quality "children’s and young adult books that portray Latin America, the Caribbean, or Latinos in the United States, and to provide teachers with recommendations for classroom use." It was first awarded in 1993 by the Consortium of Latin American Studies Programs (CLASP). The award is presented annually at a ceremony at the Library of Congress during Hispanic Heritage Month, along with coordinating workshops for teachers. History The Américas Award was proposed in 1992 within the Teaching and Outreach Committee of the Consortium of Latin American Studies Programs. Julie Kline, at the University of Wisconsin–Milwaukee, served as the committee chair for the first 3 years of the award and then went on to be the award coordinator for many years. Coordination for the award later moved to Latin American Studies centers at Tulane and Vanderbilt Universities. A full research collection of all winning, honor, and commended titles is kept and maintained by the University of Wisconsin–Milwaukee at the Golda Meir Library. Criteria and Eligibility The award judges will evaluate books based on Distinctive literary quality; Cultural contextualization; Exceptional integration of text, illustration and design; Potential for classroom use. In order to be eligible for the award, a title must meet the following criteria: The book must be published in the preceding year. The title may be for primary or secondary reading levels. Language of publication may be English, Spanish, Portuguese, or any language indigenous to the Americas. The book must be published in the United States or by a publisher with offices within the U.S. Submissions may be fiction, poetry, folklore, or selected non-fiction. A book will only be considered in its first year of publication in the United States. A book originally published in the U.S. in English with a translated edition in a subsequent year will only be eligible the first year of the edition. Recipients Recipients of Multiple Awards and Honors Multiple Américas Awards One person's works have received four Américas Awards: Margarita Engle, as author in 2006, 2009, 2012, and 2015. One person's works have received three Américas Awards: Duncan Tonatiuh, as author and illustrator in 2015, 2018, and 2019. Multiple people's works have won two Américas Awards: As author and illustrator: Yuyi Morales. As author: Julia Alvarez, Monica Brown, Juan Felipe Herrera, Francisco Jiménez, Lynn Joseph and Pam Muñoz Ryan. Multiple Américas Honors Multiple people's works have received two honors: As author and illustrator: Maya Christina González, Yuyi Morales, and Duncan Tonatiuh As illustrator David Díaz As author: Margarita Engle, Judith Ortiz Cofer, and Laura Resau Multiple Américas Commendations Different works by the same authors or illustrators have received commendations in the same year. Two people's work has received commendations nine times: George Ancona as both author and illustrator in 1994, 1995, 1998, 1999, 2000, 2001, 2003, 2007-2008, and 2011. Maya Christina González as illustrator twice in 1997, and once 1998, 1999, 2001, 2002, 2007-2008, and 2009; and as author and illustrator in 2007-2008. Three people's work has received commendations eight times: Jorge Argueta as author in 2003, twice in 2006, 2007-2008, 2010, 2011, 2016, and 2017. Margarita Engle as author in 2010, 2014, twice in 2016, 2017, twice in 2018, and 2019. Gary Soto as author in 1995, twice in 1997, twice in 1998, 2003, 2006, and 2009. Two people's work has received commendations seven times: Alma Flor Ada as author in 1995, twice in 1997, 1998, 2002, and 2016. Pat Mora as author in 1996, 1997, 2002, twice in 2010, and 2011. Two people's works have received commendations six times: David Díaz as illustrator in 1996, 2000, 2002, 2010, 2011, and 2016. Enrique O. Sánchez as illustrator in 1993, 1994, twice in 1996, 1997, and 1999. Four people's works have received commendations five times: Francisco X. Alarcón as author in 1997, 1998, 1999, 2001, and 2009. Monica Brown as author in 2007-2008, 2010, 2014, 2016, and 2018. Raúl Colón as illustrator in 1997, 2005, 2007-2008, and twice in 2015. Francisco X. Stork as author in 2006, 2010, 2011, 2017, and 2018. Eight people's works have received commendations four times: Lori Marie Carlson as author in 1994, 1996, 2005, and 2009. Lulu Delacre as illustrator in 1994 and 1997; as author in 1996; and author and illustrator in 2000. Domi as illustrator in 2006, 2006, 2009, and 2011. Arthur Dorros as author and illustrator in 1993 and 1995, and as author in 2005 and 2015. Tony Johnston as author in 1994, 1997, 2001, and 2010. Rafael López as illustrator in 2010, 2014, 2016, and 2018. Edel Rodríguez as illustrator in 2001, 2010, and twice in 2016. Benjamin Alire Sáenz as author in twice in 2009, 2013, and 2018. Twenty people's works have received commendations three times: Rudolfo Anaya as author in 1995, 2000, and 2004. Carmen T. Bernier-Grand as author in 1994, 2007-2008, and 2010. Robert Casilla as illustrator in 1993, 1996, and 2004. Joe Cepeda as illustrator in 1998, 2007-2008, and 2011. René Colato Laínez as author in 2010, 2011, and 2017. Amy Córdova as illustrator in 2004, 2009, and 2011. Tomie dePaola as author and illustrator in 1994, and as illustrator in 1994 and 1999. Luis Garay as illustrator in 1996 and 2007-2008, and as author and illustrator in 1997. Phillis Gershator as author twice in 1994 and once in 1998. Juan Felipe Herrera as author in 1995, 2002, and 2015. Francisco Jiménez as author in 1998, 2000, and 2009. Elisa Kleven as illustrator in 1994 and 1997, and author and illustrator in 1996. Georgina Lázaro as author in 2009, 2010, and 2018. Frané Lessac as author and illustrator in 1994, and as illustrator in 1994 and 2013. Meg Medina as author in 2014, 2017, and 2019. Roseanne Greenfield Thong as author in 2014 and twice in 2015. Duncan Tonatiuh as author and illustrator in 2011 and 2017, and as illustrator in 2016. Beatriz Vidal as illustrator in 1998, 2002, and 2018. Jeanette Winter as illustrator in 1997, and as author and illustrator in 2007-2008 and 2011. Rafael Yockteng as illustrator in 2002, 2010, and 2016. Multiple people's work has received two commendations: As author and illustrator: Angela Dominguez, Laura Lacámara, Yuyi Morales, and Leyla Torres. As illustrator: Jamel Akib, Renato Alarcão, Andrea Arroyo, Martha Avilés, Claire B. Cotts, Felipe Dávalos, Carla Golembe, Ann Grifalconi, Holly Meade, John Parra, Raúl the Third, Alfonso Ruano, Synthia Saint James, Elivia Savadier, Simón Silva. As author: Eve Bunting, Cathy Camper, Teresa Cárdenas, Pablo Cartaya, Omar S. Castañeda, Matt de la Peña, Campbell Geeslin, Mary-Joan Gerson, Lucía M. González, Rigoberta Menchú, Jose-Luis Orozco, Amada Irma Pérez, Isabel Quintero, Vashanti Rahaman, Antonio Ramírez, Laura Resau, Roni Capin Rivera-Ashford, Carmen Tafolla, Erika Tamar, Nancy Van Laan, and Jonah Winter. References Awards established in 1993 Children's literary awards Young adult literature awards Latin American literary awards Hispanic and Latino American culture American children's literary awards Literary awards honoring minority groups Hispanic and Latino American literature
The Internet uses the Domain Name System (DNS) to associate numeric computer IP addresses with human-readable names. The top level of the domain name hierarchy, the DNS root, contains the top-level domains that appear as the suffixes of all Internet domain names. The most widely used (and first) DNS root is administered by the Internet Corporation for Assigned Names and Numbers (ICANN). In addition, several organizations operate alternative DNS roots, often referred to as alt roots. These alternative domain name systems operate their own root name servers and commonly administer their own specific name spaces consisting of custom top-level domains. The Internet Architecture Board (IAB) has spoken out strongly against alternative roots in . Overview The DNS root zone consists of pointers to the authoritative domain name servers for all top-level domains (TLDs). The root zone is hosted on a collection of root servers operated by several organizations around the world that all use a specific, approved list of domains that is managed by ICANN. By contrast, alternative roots typically include pointers to all of the TLD servers for domains delegated by ICANN, as well as name servers for other, custom top-level domains that are not sanctioned by ICANN. Some alternative roots are operated by the organizations that manage these alternative TLDs. Zach Bastick proposes that alternative DNS roots have allowed for more democratic control of the Internet: Unless one specifically changes their DNS resolution settings, alternative DNS top level domains are generally unreachable, and very few Internet service providers provide this configuration by default. Implementations Some organizations provide alternative DNS root services, such as additional top-level domains. Handshake Handshake is a decentralized implementation of a DNS root zone using blockchain and cryptocurrency technology to create a peer-to-peer alternative to the 13 root name servers managed by ICANN. Unlike other attempts, Handshake does not aim to replace the existing DNS; rather, it seeks to supplement and enhance it by allowing anyone to bid, register, and manage their own TLDs without an intermediate registrar or delegating authority. Since the root zone file records are not centrally managed, and instead are stored on a public blockchain, owners of Handshake TLDs can add or change top-level resource records to delegate authoritative name servers and set up DNSSEC zone signing directly. Existing TLDs are reserved in the Handshake blockchain such that resolving traditional domain names (i.e. zones under .com, .org, .net, etc.) through a Handshake node or name server are directed back to ICANN's root servers. In addition, the top 100,000 most popular domains are reserved as Handshake TLDs which can be redeemed by the original domain owner. Namecoin Namecoin is a blockchain and cryptocurrency to support the alternative top-level domain .bit. OpenNIC OpenNIC is a user owned and controlled alternative to InterNIC and ICANN providing a non-national democratic alternative to traditional domain registries. OpenNIC servers are able to resolve all ICANN top-level domains, some OpenNIC original top-level domains, and the resolution of other Alternate DNS Roots with which they have reached peering agreements. Yeti DNS Project Yeti DNS Project is an attempt to build an alternative root server dedicated to IPv6. Sponsored by a Chinese state agency, the project aims at experimenting with different new DNS-related technology and enabling sovereign countries to explore and control the internet and enhance their network sovereignty. .chn .chn is a new top-level domain with its own root DNS server for an Internet of Things (IoT) network in China. The company developing this alternative root claims that China has its own intellectual right on this new alternative domain name root and the associated IoT network, and that it will become the second computer network in the world. It is claimed to be part of a "IPv9" decimal network/numeric domain name system developed and innovated in China. Russian National Domain Name System The Russian National Domain Name System () is an alternative DNS root project started in 2019 by Roskomnadzor, a government department, and is to gradually become mandatory for all ISPs in Russia. As of March 2021, servers are located on the Moscow Internet Exchange. The mission of the project is to provide an alternative DNS root for all users of the Internet within Russia. The main goal is to continue the functioning of the Russian Internet subnetwork in case of its disconnection from the rest of the Internet (Sovereign Internet Law). Defunct implementations Open Root Server Network (ORSN) Open Root Server Network (ORSN) was a network of Domain Name System root nameservers for the Internet. ORSN root zone information was normally kept in synchronization with the "official" root nameservers coordinated by ICANN. ORSN Public DNS Servers were operated by the community of ORSN, providing Domain Name System access freely for everyone, without any limitation. ORSN public DNS servers did not log usage. "The ORSN project was canceled on May 2019 and will never come back." AlterNIC AlterNIC was created before ICANN's creation to challenge the monopoly of InterNIC on domain name governance at the time. eDNS eDNS (Enhanced Domain Name Service) was founded by a coalition of ISPs led by Karl Denninger of the Chicago-area MCSNet. It ceased operation in 1998. It served the following domains: biz (general business use), corp (corporations), fam (for and about family), k12 (for and about children), npo (non-profit organizations), per (personal domains), web (web-based sites, Web pages). Open RSC One of the notable challengers to ICANN's control of the DNS namespace was Open RSC (Open Root Server Confederation), a group that grew out of private discussions and developed into a public mailing list. It grew large enough that the group decided to submit an application to the United States government to run the DNS. The organization posted bylaws and articles of incorporation outlining ORSC's position following extensive public discussion regarding the manner in which the DNS was operated. ICANN chairwoman Esther Dyson acknowledged adopting features such as membership from ORSC in her response to the United States Department of Commerce. ORSC publishes a root zone containing additional top level domains not found in the ICANN root zone. RealNames Microsoft offered the RealNames service on its Internet Explorer browser address bar. RealNames, to users of Internet Explorer, was in effect a domain registry. RealNames shut down operations in 2002 following a decision by Microsoft to redirect the 1 billion page views per calendar quarter that RealNames was resolving from the browser address bar into its MSN search engine. See also Domain Name System Open Root Server Network Public recursive name servers Root nameserver References Internet governance
Michael Kent was one of two founders of the Computer Group which used a statistics based sports betting to predict the outcome of college football. The group reportedly made millions each season. According to figures compiled at the time by Michael Kent, the Computer Group in 1983-84 earned almost $5 million from wagers on college and, occasionally, NFL games. Yet Michael Kent suspects that his records are incomplete. They do not account for personal bets made by Dr. Mindlin, or Billy Walters and Glen Walker or by the dozens of other associates who had access to the Computer Group's information. By the time everyone had exhausted Kent's forecasts in the 1983-84 sports year, the group was estimated to have earned $10 to $15 million. Kent invented the statistical models. He was 34 when he had created the first successful program for handicapping basketball and football games: together with his brother, Michael collected statistical data about every team to put all that info to his computer and update the program. The story was first reported by a national publication in the March 1986 Sports Illustrated. References External links Keyboard Cappers: A sports-betting history lesson, with a nod to the computer and the trailblazers who saw the future Gambling � The Story of the Computer Group Living people Year of birth missing (living people)
Balor Lilbon Moore (born January 25, 1951) is an American former professional baseball player. He played in the Major League Baseball as a left-handed pitcher between 1970 and 1980. He was the first player drafted by the Montreal Expos expansion team in the 1969 Major League Baseball draft (22nd overall). He also played for the California Angels and the Toronto Blue Jays. Expos phenom Moore went a combined 9-1 with a 0.41 earned run average in the Gulf Coast League and Florida State League in his first professional baseball season, at the Rookie and High A levels. After going 3–0 with a 0.72 ERA for the High A West Palm Beach Expos to start the season, Moore made the jump all the way to the Triple A Buffalo Bisons. He made his major league debut at the age of 19 on May 21, 1970 against the Pittsburgh Pirates. He faced one batter, Willie Stargell, who lined out to left field. Moore pitched a total of 9.2 innings in the majors that season, going 0–2 with a 7.45 ERA. Moore struggled in , going 2–11 with a 6.33 ERA for Triple A Winnipeg. After a year in the army, Moore went 5–3 with a 0.63 ERA for the Double A Quebec Carnavals in to earn a second promotion to Montreal. Montreal Expos Moore was roughed up in his first four starts, going 0–3 with a 6.45 ERA. He turned his season around on July 14 with a complete game 9–1 victory over the Los Angeles Dodgers. From there, Moore went 9–6 with a 2.94 ERA, including a 25 inning scoreless-inning streak broken on September 16 by Philadelphia Phillies rookie Mike Schmidt's first major league home run. For the season, the left-hander made 22 starts and struck out 161 hitters in 147.2 innings. That winter he pitched a perfect game for San Juan in Puerto Rico, the first nine-inning perfect game in that league's 36-year history. Moore's record dipped to 7–16 in , mostly due to an increase in walks (109 compared to 59 the previous season). Still Moore struck out an average of 7.71 batters per nine innings, second in the National League, and held batters to a .233 batting average, tenth in the league. Later career Moore injured his ankle during spring training in , and his arm early in the season. He went 0–3 with a 10.20 ERA in six rehab appearances with the Triple A Memphis Blues before undergoing major elbow surgery during that off-season. Moore returned in , although was never the same. He was 1–3 with a 4.00 ERA for Memphis when his contract was sold to the California Angels. He earned a September call-up to the Angels in , going 0–2 with a 3.97 ERA. After just one season in California, Moore's contract was sold to the Toronto Blue Jays. Moore spent the final three seasons of his career with the Blue Jays, going 12–17 with a 4.96 ERA. He pitched four innings to earn the only save of his career on April 27, against the Milwaukee Brewers. He spent in the minors with the Brewers and Houston Astros before officially retiring. Career stats Moore had a 40–58 record and 4.01 ERA in eleven minor league seasons. He went into the steel business after his baseball career ended, and currently owns Brittex Pipe Company in Houston, Texas. References External links , or Baseball Almanac, or Retrosheet, or Balor Moore - Baseballbiography.com 1951 births Living people Baseball players from Texas American expatriate baseball players in Canada Buffalo Bisons (minor league) players California Angels players El Paso Diablos players Florida Instructional League Expos players Gulf Coast Expos players Major League Baseball pitchers Memphis Blues players Montreal Expos players Peninsula Whips players People from Smithville, Texas Québec Carnavals players Salinas Angels players Salinas Packers players Salt Lake City Gulls players Syracuse Chiefs players Tigres de Aragua players American expatriate baseball players in Venezuela Toronto Blue Jays players Tucson Toros players Vancouver Canadians players West Palm Beach Expos players Winnipeg Whips players
Dudley Stuart John Moore CBE (19 April 193527 March 2002) was an English actor, comedian, musician, and composer. Moore first came to prominence in the UK as a leading figure in the British satire boom of the 1960s. He was one of the four writer-performers in the comedy revue Beyond the Fringe from 1960 that created a boom in satiric comedy, and with a member of that team, Peter Cook, collaborated on the BBC television series Not Only... But Also. As a popular double act, Moore’s buffoonery contrasted with Cook’s deadpan monologues. They jointly received the 1966 British Academy Television Award for Best Entertainment Performance. They worked together on other projects until the mid-1970s, by which time Moore had settled in Los Angeles to concentrate on his film acting. His career as a comedy film actor was marked by hit films, particularly Bedazzled (1967), set in Swinging Sixties London (in which he co-starred with Cook) and Hollywood productions Foul Play (1978), 10 (1979) and Arthur (1981). For Arthur, Moore was nominated for the Academy Award for Best Actor and won a Golden Globe Award. He received a second Golden Globe for his performance in Micki & Maude (1984). Moore was awarded a star on the Hollywood Walk of Fame in 1987 and was made a CBE by Queen Elizabeth II at Buckingham Palace on 16 November 2001 in what was his last public appearance. Early life Moore was born at the original Charing Cross Hospital in central London, the son of Ada Francis (née Hughes), a secretary, and John Moore, a railway electrician from Glasgow. He had an older sister, Barbara. Moore was brought up in the Becontree estate in Dagenham, Essex. He was short at and had club feet that required extensive hospital treatment. This made him the butt of jokes from other children. His right foot responded well to corrective treatment by the time he was six, but his left foot was permanently twisted and his left leg below the knee was withered. He remained self-conscious about this throughout his life. Moore became a chorister at the age of six. At age 11 he earned a scholarship to the Guildhall School of Music, where he took up harpsichord, organ, violin, musical theory and composition. He rapidly developed into a highly talented pianist and organist and was playing the organ at local church weddings by the age of 14. He attended Dagenham County High School where he received dedicated musical tuition from Peter Cork (1926–2012), who helped him towards his Oxford music scholarship. (Norma Winstone was another student of Cork's at Dagenham). Cork was also a composer. Moore kept in touch until the mid-1990s and his letters to Cork were published in 2006. Moore won an organ scholarship to Magdalen College, Oxford, where he was tutored by the composer Bernard Rose. While studying music and composition there, he also performed with Alan Bennett in The Oxford Revue. During his university years, Moore developed a love of jazz music and became an accomplished jazz pianist and composer. He began working with musicians such as John Dankworth and Cleo Laine. In 1960 he left Dankworth's band to work on Beyond the Fringe. Career Beyond the Fringe John Bassett, a graduate of Wadham College, Oxford recommended Moore, his jazz bandmate and a rising cabaret talent, to producer Robert Ponsonby, who was putting together a comedy revue entitled Beyond the Fringe. Bassett also chose Jonathan Miller. Moore then recommended Alan Bennett, who in turn suggested Peter Cook. Beyond the Fringe was at the forefront of the 1960s UK satire boom, although the show's original runs in Edinburgh and the provinces in 1960 had had a lukewarm response. When the revue transferred to the Fortune Theatre in London, in a revised production by Donald Albery and William Donaldson, it became a sensation, thanks in some part to a favourable review by Kenneth Tynan. There were also a number of musical items in the show, using Dudley Moore's music, most famously an arrangement of the Colonel Bogey March in the style of Beethoven, which Moore appears unable to bring to an end. In 1962 the show transferred to the John Golden Theatre in New York, with its original cast. President John F. Kennedy attended a performance on 10 February 1963. The show continued in New York until 1964. Partnership with Peter Cook When Moore returned to the UK he was offered his own series on the BBC, Not Only... But Also (1965, 1966, 1970). It was commissioned specifically as a vehicle for Moore, but when he invited Peter Cook on as a guest, their comedy partnership was so notable that it became a permanent fixture of the series. Cook and Moore are most remembered for their sketches as two working-class men, Pete and Dud, in macs and cloth caps, commenting on politics and the arts, but they also fashioned a series of one-off characters, usually with Moore in the role of interviewer to one of Cook's upper-class eccentrics. The pair developed an unorthodox method for scripting the material, using a tape recorder to tape an ad-libbed routine that they would then have transcribed and edited. This would not leave enough time to fully rehearse the script, so they often had a set of cue cards. Moore was famous for "corpsing" so, as the programmes often went out live, Cook would deliberately make him laugh in order to get an even bigger reaction from the studio audience. The BBC wiped much of the series, though some of the soundtracks (which were issued on LP record) have survived. In 1968 Cook and Moore briefly switched to ATV for four one-hour programmes entitled Goodbye Again; however, they were not as critically well-received as the BBC shows. On film, Moore and Cook appeared in the 1966 British comedy film The Wrong Box, before co-writing and co-starring in Bedazzled (1967) with Eleanor Bron. Set in Swinging London of the 1960s, Bedazzled was directed by Stanley Donen. The pair closed the decade with appearances in the ensemble caper film Monte Carlo or Bust and Richard Lester's The Bed Sitting Room, based on the play by Spike Milligan and John Antrobus. In 1968 and 1969 Moore embarked on two solo comedy ventures, firstly in the film 30 is a Dangerous Age, Cynthia and secondly, on stage, for an Anglicised adaptation of Woody Allen's Play It Again, Sam at the Globe Theatre in London's West End. In the 1970s, the relationship between Moore and Cook became increasingly strained as the latter's alcoholism began affecting his work. In 1971, however, Cook and Moore took sketches from Not Only....But Also and Goodbye Again, together with new material, to create the stage revue Beyond the Fringe. This show toured Australia in 1972 before transferring to New York City in 1973, re-titled as Good Evening. Cook frequently appeared on and off stage the worse for drink. Nonetheless, the show proved very popular and it won Tony and Grammy Awards. When the Broadway run of Good Evening ended, Moore stayed on in the U.S. to pursue his film acting ambitions in Hollywood, but the pair reunited to host Saturday Night Live on 24 January 1976 during SNL's first season. They performed a number of their classic stage routines, including "One Leg Too Few" and "Frog and Peach", among others, in addition to participating in some skits with the show's ensemble. It was during the Broadway run of Good Evening that Cook persuaded Moore to take the humour of Pete and Dud further on long-playing records as Derek and Clive. Chris Blackwell circulated bootleg copies to friends in the music business and the popularity of the recording convinced Cook to release it commercially as Derek and Clive (Live) (1976). Two further "Derek and Clive" albums, Derek and Clive Come Again (1977) and Derek and Clive Ad Nauseam (1978), were later released. The latter was also filmed for a documentary, Derek and Clive Get the Horn. In the film it is clear tensions between the two men were at a breaking point, with Moore at one point walking out of the recording room singing, 'Breaking up is so easy to do.' In 2009, it came to light that, at the time, three separate British police forces had wanted them to be prosecuted under obscenity laws for their "Derek and Clive" comedy recordings. The last significant appearance for the partnership was in 1978's The Hound of the Baskervilles, where Moore played Dr. Watson to Cook's Sherlock Holmes, as well as three other roles: in drag; as a one-legged man; and at the start and end of the film as a flamboyant and mischievous pianist. He also wrote the film's score. Co-star Terry-Thomas described it as "the most outrageous film I ever appeared in ... there was no magic ... it was bad!". The film was not a success, either critically or financially. Moore and Cook eventually reunited for the annual American benefit for the homeless, Comic Relief, in 1987, and again in 1989 for a British audience at the Amnesty International benefit The Secret Policeman's Biggest Ball. Moore was deeply affected by the death of Cook in 1995, and for weeks would regularly telephone Cook's home in London, just to hear his friend's voice on the telephone answering machine. Moore attended Cook's memorial service in London and, at the time, many people who knew him noted that Moore was behaving strangely and attributed it to grief or drinking. In November 1995, Moore teamed up with friend and humorist Martin Lewis in organising a two-day salute to Cook in Los Angeles that Moore co-hosted with Lewis. In December 2004 the Channel 4 television station in the United Kingdom broadcast Not Only But Always, a TV film dramatising the relationship between Moore and Cook, although the principal focus of the production was on Cook. Around the same time, the relationship between the two was also the subject of a stage play called Pete and Dud: Come Again by Chris Bartlett and Nick Awde. For this production Moore is the main subject. Set in a chat-show studio in the 1980s, it focuses on Moore's comic and personal relationship with Cook and the directions their careers took after the split of the partnership. Music During the 1960s he formed the Dudley Moore Trio, with drummer Chris Karan and bassist Pete McGurk. Following McGurk's suicide in June 1968, Peter Morgan joined the group as his replacement. Moore's admitted principal musical influences were Oscar Peterson and Erroll Garner. In an interview he recalled the day he finally mastered Garner's unique left-hand strum and was so excited that he walked around for several days with his left hand constantly playing that cadence. His early recordings included "My Blue Heaven", "Lysie Does It", "Poova Nova", "Take Your Time", "Indiana", "Sooz Blooz", "Baubles, Bangles & Beads", "Sad One for George" and "Autumn Leaves". The trio performed regularly on British television, made numerous recordings and had a long-running residency at Peter Cook's London nightclub, the Establishment. Amongst other albums, they recorded The Dudley Moore Trio, Dudley Moore plays The Theme from Beyond the Fringe and All That Jazz, The World of Dudley Moore, The Other Side Of Dudley Moore and Genuine Dud. Moore was a close friend of record producer Chris Gunning and played piano (uncredited) on the 1969 single "Broken Hearted Pirates" which Gunning produced for Simon Dupree and the Big Sound. In 1976 he played piano on Larry Norman's album In Another Land, in particular on the song The Sun Began to Rain. In 1981 he recorded Smilin' Through with Cleo Laine. He composed the soundtracks for the films Bedazzled (1967), 30 is a Dangerous Age, Cynthia (1968), Inadmissible Evidence (1968), Staircase (1969), The Hound of the Baskervilles (1978) and Six Weeks (1982), among others. Later career in film, television and music In the late 1970s Moore moved to Hollywood, where he had a supporting role in the hit film Foul Play (1978) with Goldie Hawn and Chevy Chase. The following year saw his breakout role in Blake Edwards's 10, which became one of the biggest box-office hits of 1979 and gave him an unprecedented status as a romantic leading man. Moore followed up with the comedy film Wholly Moses!, which was not a major success. In 1981 Moore appeared in the title role of the comedy Arthur, an even bigger hit than 10. Co-starring Liza Minnelli and Sir John Gielgud, it was both commercially and critically successful, Moore receiving an Oscar nomination for Best Actor, whilst Gielgud won the Best Supporting Actor Oscar for his role as Arthur's stern but compassionate manservant. Moore lost to Henry Fonda (for On Golden Pond). He did, however, win a Golden Globe award for Best Actor in a Musical/Comedy. In the same year, on British television, Moore was the featured guest subject on An Audience With.... His subsequent films, Six Weeks (1982), Lovesick (1983), Romantic Comedy (1983) and Unfaithfully Yours (1984) were only moderate successes. He won another Golden Globe for Best Actor in a Musical/Comedy in 1984, starring in the Blake Edwards directed Micki & Maude, co-starring Amy Irving. Later films, including Best Defense (1984), Santa Claus: The Movie (1985), Like Father Like Son (1987), Arthur 2: On the Rocks (1988), a sequel to the original, Crazy People (1990), Blame It on the Bellboy (1992) and an animated adaptation of King Kong, were inconsistent in terms of both critical and commercial reception. Moore eventually disowned the Arthur sequel, but, in later years, Cook would tease him by claiming he preferred Arthur 2: On the Rocks to Arthur. In 1986 he once again hosted Saturday Night Live, albeit without Peter Cook this time. Moore was the subject of the British This Is Your Life, for a second time, in March 1987 when he was surprised by Eamonn Andrews at his Venice Beach restaurant; he had previously been honoured by the programme in December 1972. In addition to acting, Moore continued to work as a composer and pianist, writing scores for a number of films and giving piano concerts, which were highlighted by his popular parodies of classical favourites. He appeared as Ko-Ko in Jonathan Miller's production of The Mikado in Los Angeles in March 1988. He appeared on Kenny G's music video "Against Doctor's Orders" from the album Silhouette. In 1991 he released the album Songs Without Words and in 1992 Live From an Aircraft Hangar, recorded at London's Royal Albert Hall. He collaborated with the conductor Sir Georg Solti in 1991 to create a Channel 4 television series, Orchestra!, which was designed to introduce audiences to the symphony orchestra. He later worked with the American conductor Michael Tilson Thomas on a similar television series, Concerto! (1993), likewise designed to introduce audiences to classical music concertos. Moore appeared in two series for CBS, Dudley (1993) and Daddy's Girls (1994); however, both were cancelled before the end of their run. Moore had been interviewed for The New York Times in 1987 by the music critic Rena Fruchter, herself an accomplished pianist, and the two became close friends. By 1995 Moore's film career was on the wane and he was having trouble remembering his lines, a problem he had never previously encountered. It was for this reason he was sacked from Barbra Streisand's film The Mirror Has Two Faces. However, his difficulties were, in fact, due to the onset of the medical condition that eventually led to his death. Opting to concentrate on the piano, he enlisted Fruchter as an artistic partner. They performed as a duo in the US and Australia. However, his disease soon started to make itself apparent there as well, as his fingers would not always do what he wanted them to do. Further symptoms such as slurred speech and loss of balance were misinterpreted by the public and the media as a sign of drunkenness. Moore himself was at a loss to explain this. He moved into Fruchter's family home in New Jersey and stayed there for five years; however, this placed a great strain both on her marriage and her friendship with Moore, and she later set him up in the house next door. Restaurant Tony Bill and Dudley Moore founded a restaurant in 1983 (closed in November 2000), 72 Market Street Oyster Bar and Grill, in Venice, California. Personal life Moore was married and divorced four times: to actresses Suzy Kendall (15 June 1968 – 15 September 1972); Tuesday Weld (20 September 1975 – 18 July 1980), by whom he had a son, Patrick, on 26 February 1976; Brogan Lane (21 February 1988 – 1991); and Nicole Rothschild (16 April 1994 – 1998), by whom he had a son, Nicholas, on 28 June 1995. Moore dated Susan Anton in the early 1980s, with a lot of talk being made of their height difference: Moore was and Anton was . In 1994, Moore was arrested and charged with domestic assault after allegedly assaulting his then-girlfriend and soon-to-be wife, Nicole Rothschild. He maintained good relationships with Kendall, Weld and Lane. However, he expressly prohibited Rothschild from attending his funeral since, at the time his illness became apparent, he was going through a difficult divorce with her while at the same time sharing a Los Angeles house with her and her previous husband. Illness and death In April 1997, after spending five days in a New York hospital, Moore was informed that he had calcium deposits in the basal ganglia of his brain and irreversible frontal lobe damage. He underwent quadruple coronary artery bypass surgery in London and also suffered four strokes. On 30 September 1999, Moore announced that he was suffering from the terminal degenerative brain disorder progressive supranuclear palsy (PSP), a Parkinson-plus syndrome, some of the early symptoms being so similar to intoxication that he had been reported as being drunk, and that the illness had been diagnosed earlier in the year. The disease eventually required him to use a wheelchair. Moore died on the morning of 27 March 2002 as a result of pneumonia, secondary to immobility caused by his PSP, in Plainfield, New Jersey, at the age of 66. Rena Fruchter was holding his hand when he died; she reported his final words were "I can hear the music all around me." Moore was interred at Hillside Cemetery in Scotch Plains, New Jersey. Fruchter later wrote a memoir of their relationship titled Dudley Moore (Ebury Press, 2004). Honours and awards In 1981, Moore won the Golden Globe for Best Actor for his role in Arthur, for which he was also Oscar-nominated. In November 2001, Moore was appointed a Commander of the Order of The British Empire (CBE). Despite his deteriorating condition, he attended the ceremony at Buckingham Palace on 16 November to collect his honour in a wheelchair. It was his last public appearance. Filmography Discography UK chart singles "Goodbye-ee", 1965, Peter Cook and Dudley Moore "The Ballad of Spotty Muldoon", 1965, Peter Cook and Dudley Moore Jazz discography "Strictly for the Birds" b/w "Duddly Dell", 1961 (Parlophone R 4772) The Dudley Moore Trio (Derek Hogg, drums; Hugo Boyd, double bass) The Other Side of Dudley Moore, 1965 (Decca LK 4732 Mono) The Dudley Moore Trio (Pete McGurk double bass, Chris Karan drums) Genuine Dud, 1966 (Decca LK 4788 Mono) The Dudley Moore Trio (Pete McGurk double bass, Chris Karan drums) [reissued as The World of Dudley Moore, vol 2, 1973] From Beyond The Fringe, 1966 (Atlantic RecordsStandard 2 017) The Dudley Moore Trio, 1969 (Decca Records (UK) / London Records (US) PS558) Dudley Moore plays the Theme from Beyond the Fringe and All That Jazz, 1962 (Atlantic 1403) The World of Dudley Moore, (Decca SPA 106) The Music of Dudley Moore, (EMI Australia (Cube Records) TOOFA.14-1/2) Dudley Down Under, (Cube ICS 13) Dudley Moore at the Wavendon Festival, (Black Lion Records BLP 12151) Smilin' Through – Cleo Laine and Dudley Moore, (Finesse Records FW 38091) "Strictly for the Birds" – Cleo Laine and Dudley Moore, (CBS A 2947) The Theme from Beyond The Fringe and All That Jazz, (Collectibles COL 6625) Live from an Aircraft Hangar (Martine Avenue Productions MAPI 8486) Songs Without Words, 1991 (GRP/BMG LC 6713) The First Orchestrations – Dudley Moore and Richard Rodney Bennett, played by John Bassett and his Band, (Harkit Records HRKCD 8054) Jazz Jubilee, (Martine Avenue Productions MAPI 1521) The Dudley Moore Trio at Sydney Town Hall, 2 May 1978 (with Peter Morgan on bass and Chris Karan on drums). Produced by Peter Wall. Today, The Dudley Moore Trio again with Morgan and Karan (see above) recorded at United Sound, Sydney, in 1971, with some mono tracks added from a 1961 London session. No details. Comedy discography Beyond The Fringe (West End recording) (1961) Beyond The Fringe (Broadway recording) (1962) Not Only Peter Cook But Also Dudley Moore (1965) Once Moore with Cook (1966) Peter Cook and Dudley Moore Cordially Invite You to Go to Hell! (1967) Goodbye Again (1968) Not Only But Also (1971) Behind the Fridge (1971) AUS No. 35 The World of Pete & Dud (1974) Good Evening (1974) Derek and Clive (Live) (1976) Derek and Clive Come Again (1977) Derek and Clive Ad Nauseam (1978) Bibliography Dudley Moore (1966). Originals. Arranged as Piano Solos Transcribed from the Decca L.P. 'The Other Side of Dudley Moore'''. Essex Music. References Further reading Roger Wilmut, From Fringe to Flying Circus: Celebrating a Unique Generation of Comedy 1960–1980, Eyre Methuen Ltd, 1980 Dudley Moore: An Intimate Portrait, Rena Fruchter, Ebury Press, 2004, . Julian Upton, Fallen Stars'', Headpress, 2004. External links "The Films of Dudley Moore", film clip compilation, 5 minutes Obituary at CNN.com "Affectionately Dudley", 2006 Radio 4 programme 1935 births 2002 deaths 20th-century British male musicians 20th-century English male actors 21st-century English male actors 20th-century classical musicians 20th-century British pianists 20th-century English musicians 20th-century English comedians Alumni of the Guildhall School of Music and Drama Alumni of Magdalen College, Oxford Best Entertainment Performance BAFTA Award (television) winners Best Musical or Comedy Actor Golden Globe (film) winners Black Lion Records artists British male comedy actors British male jazz musicians British male organists British male pianists Burials at Hillside Cemetery (Scotch Plains, New Jersey) Comedians from London Commanders of the Order of the British Empire Deaths from pneumonia in New Jersey Deaths from progressive supranuclear palsy Dudley Moore Trio members English classical organists English expatriates in the United States English jazz pianists English male comedians English male film actors English male television actors English people of Scottish descent English satirists Grammy Award winners Male actors from Hammersmith Male classical organists Neurological disease deaths in New Jersey People from Dagenham Special Tony Award recipients