22 November 2004
Code libraries from C/C++ Users Journal
This entry is a repository for useful code libraries that have been presented in C/C++ Users Journal. The article name links to the zipped file, on CUJ's site, of that issue's source code. The issue date links to the CUJ page for that issue. This will be regularly updated.
- Containers
- Ranges: Part 1: Concepts and Implementations (October 2004, Volume 22, Number 10), Part 2: Iterable Range Adaptors, Algorithms, and Composition (December 2004, Volume 22, Number 12); Torjo, John and Matthew Wilson
- STL Sequences & the View Concept (April 2004, Volume 22, Number 4); Sobczak, Maciej
- Search, State Machines
- Finite State Machine Framework, A (April 2004, Volume 22, Number 4); Mason, P. Dale
- State Space Searching (October 2004, Volume 22, Number 10); Theese, David
- Misc
- Asynchronous Delegates & C++ (November 2004, Volume 22, Number 11); Dotlic, Drazen
- Constrained Value Types Using Policies (December 2004, Volume 22, Number 12); Diggins, Christopher
- Win32 GUI Generics: The Roots (August 2004, Volume 22, Number 7), Window Creation, Access, Frames, and Dialogs (August 2004, Volume 22, Number 8), Keeping It Simple (September 2004, Volume 22, Number 9), Make It Look Good! (November 2004, Volume 22, Number 11); Torjo, John
An extension of the iterator concept. Manipulate collections more succinctly.
View<> template that can contain conjunct or disjuct collections of iterators. Iterators can come from one or more collections containing the same data type. Dereferencing view<> iterators also dereferences the contained iterator.
A policy-based state machine.
Delegates are clean syntactic wrappers for callbacks. This library mimics the .NET implementation of delegates (an example of the power of C++ as a language that can subsume other languages' features without the need to change C++ itself).
A simple template for creating range-bound, single-value objects.
John Torjo has accomplished the stunning task of writing a Win32 class library that follows the principles of the Standard Library and object-oriented design. Check out his site for a full description.
- Techniques after using Swift for a month posted by sstrader on 26 August 2015 at 11:41:51 PM
- Some thoughts on Ruby after finishing a week (minus one day) of training posted by sstrader on 15 December 2011 at 8:59:30 PM
- Links on the singleton pattern posted by sstrader on 9 December 2011 at 9:19:50 AM
- Phonebot posted by sstrader on 29 October 2011 at 6:37:05 PM
- The labeled break in Java posted by sstrader on 4 September 2011 at 11:27:56 AM