about
12/06/2022
STR Repo
STR code

STR  Repository

Demonstrate building a fully-formed Value Type

Quick Status Code functions correctly no known defects Demonstration code yes Documentation yes Test cases none planned Static library none planned Build requires C++17 option Planned design changes None
Fig 1. STR Class

1.0 Contents

STR holds code for an STR string class. It is not meant to replace std::string. Instead, it serves to illustrate how to build value types, e.g., provide default, copy, and move constructors, copy and move assignment operators, and a destructor. It also illustrates how to implement other string related methods and functions. Each of the STR member functions is dissected in STRCode.html. That illustrates important implementation techniques for C++ value types, e.g., instances that can be correctly copied and assigned.

2.0 Resources

STRCode.html, pdf These documents walk through each method and function of the STR class, illustrating how to declare, implement, and invoke the method or function. The content in each document is the same, but presented in different ways.

Build:

STR code was built with Visual Studio Community Edition - 2019 and tested on Windows 10.
  Next Prev Pages Sections About Keys