{"id":2133,"date":"2025-01-27T22:33:33","date_gmt":"2025-01-27T22:33:33","guid":{"rendered":"https:\/\/bhiggs.x10hosting.com\/PracticalCPlusPlusProgramming\/?page_id=2133"},"modified":"2025-01-27T22:36:05","modified_gmt":"2025-01-27T22:36:05","slug":"summary-of-class-templates","status":"publish","type":"page","link":"https:\/\/bhiggs.x10hosting.com\/PracticalCPlusPlusProgramming\/index.php\/topics\/c-details\/class-templates-2\/summary-of-class-templates\/","title":{"rendered":"Summary of Class Templates"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p>As we discovered with function templates, we found that template classes can be extremely useful, but that their implementation and use are no trivial matters.<\/p>\n\n\n\n<p>Fortunately, we have a very full set of template functions and template classes implemented in the <em>C++ Standard Library<\/em>. It is much easier to make use of them rather than writing our own. Plus, they are implemented professionally, avoiding common mistakes in implementing such classes. In most cases, they are also <em>thread-safe<\/em>. (We haven&#8217;t talked about threads yet&#8230;)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary As we discovered with function templates, we found that template classes can be extremely useful, but that their implementation and use are no trivial matters. Fortunately, we have a very full set of template functions and template classes implemented in the C++ Standard Library. It is much easier to make use of them rather [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2103,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2133","page","type-page","status-publish","hentry"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/bhiggs.x10hosting.com\/PracticalCPlusPlusProgramming\/index.php\/wp-json\/wp\/v2\/pages\/2133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bhiggs.x10hosting.com\/PracticalCPlusPlusProgramming\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bhiggs.x10hosting.com\/PracticalCPlusPlusProgramming\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bhiggs.x10hosting.com\/PracticalCPlusPlusProgramming\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bhiggs.x10hosting.com\/PracticalCPlusPlusProgramming\/index.php\/wp-json\/wp\/v2\/comments?post=2133"}],"version-history":[{"count":2,"href":"https:\/\/bhiggs.x10hosting.com\/PracticalCPlusPlusProgramming\/index.php\/wp-json\/wp\/v2\/pages\/2133\/revisions"}],"predecessor-version":[{"id":2136,"href":"https:\/\/bhiggs.x10hosting.com\/PracticalCPlusPlusProgramming\/index.php\/wp-json\/wp\/v2\/pages\/2133\/revisions\/2136"}],"up":[{"embeddable":true,"href":"https:\/\/bhiggs.x10hosting.com\/PracticalCPlusPlusProgramming\/index.php\/wp-json\/wp\/v2\/pages\/2103"}],"wp:attachment":[{"href":"https:\/\/bhiggs.x10hosting.com\/PracticalCPlusPlusProgramming\/index.php\/wp-json\/wp\/v2\/media?parent=2133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}