Articles published in The C++ Source
http://www.artima.com/
The most recently published articles in Artima's The C++ Source.
Artima.comhttp://www.artima.com/images/artima88x33.gif
http://www.artima.com/
Enforcing Code Feature Requirements in C++
http://www.artima.com/cppsource/codefeatures.html
In this article, Scott Meyers describes a technique that enables the specification of arbitrary combinations of user-defined code features on a per-function basis and that detects violations of feature constraints during compilation.
A Brief Introduction to Rvalue References
http://www.artima.com/cppsource/rvalue.html
Rvalue references is a small technical extension to the C++ language. Rvalue references allow programmers to avoid logically unnecessary copying and to provide perfect forwarding functions. They are primarily meant to aid in the design of higher performance and more robust libraries.
How To Go Slow
http://www.artima.com/cppsource/how_to_go_slow.html
Computers make life easier because they're so fast, right? Well, yes and no. Do you write efficient code? The author reveals some disconcerting inefficiencies lurking in commonly used software and development practices.
On the Tension Between Object-Oriented and Generic Programming in C++
http://www.artima.com/cppsource/type_erasure.html
The author discusses how the use of generic programming in C++ can lead to conflicts with object-oriented design principles. He demonstrates how a technique known as type erasure can often be used to resolve these conflicts.
An in-depth example is presented: any_iterator, a type-safe, heterogeneous C++ iterator.
Safe Labels in C++
http://www.artima.com/cppsource/safelabels.html
C++ is a language for writing efficient high-performance programs,
and bit manipulations are bread and butter of many such programs.
This article presents a solution to the problem of constraining bit
operations to allow only safe and legitimate ones, and turn all invalid
bit manipulations into compile-time errors.
Gathering Scattered I/O in C++
http://www.artima.com/cppsource/scattered_io.html
Have your cake and eat it, too, with STL extensions. In this chapter extract from his latest book, Matthew Wilson shows you how to take full advantage of the STL Iterator abstraction, without sacrificing block-transfer efficiency of Scatter/Gather I/O memory.
Subscribing Template Classes with Object Factories in C++
http://www.artima.com/cppsource/subscription_problem.html
Object factories provide a useful abstraction for object construction. A special problem with object factories must be considered, however, when subscribing template classes with object factories. This article presents an overview of the "subscription problem" along with several solutions.
BoostCon'07 Up Close and Personal (and a Little Sleepy)
http://www.artima.com/cppsource/boost_con_07_up_close.html
This article is a personal, behind-the-scenes look at BoostCon '07 from a veteran who has seen it all.
Cooperative Visitor: A Template Technique for Visitor Creation
http://www.artima.com/cppsource/cooperative_visitor.html
This article presents a flexible and efficient variation of the Visitor design pattern in C++ that accommodates arbitrary argument and return types.
BoostCon'07 Trip Report
http://www.artima.com/cppsource/boost_con_07.html
Couldn’t make it to BoostCon'07, the inaugural annual Boost Conference? Here’s the next best thing--a lively trip report from one of its presenters.
An Introduction to XML Data Binding in C++
http://www.artima.com/cppsource/xml_data_binding.html
XML processing has become a common task that many C++ application developers have to deal with. This article introduces XML Data Binding and shows how it can simplify XML processing in C++.
Pure Virtual Function Called: An Explanation
http://www.artima.com/cppsource/pure_virtual.html
"Pure virtual function called" is the dying message of the occasional crashed C++ program. What does it mean? This article covers all of the possible explanations.
Trip Report: Ad-Hoc Meeting on Threads in C++
http://www.artima.com/cppsource/threads_meeting.html
The C++ standardization committee is hard at work standardizing threads for the next version of C++. Some members recently met to discuss the issues, and The C++ Source was there. Read on to learn what the world’s leading experts on concurrency are planning for C++0x.
The Lazy Builder’s Complexity Lesson
http://www.artima.com/cppsource/lazy_builder.html
This article investigates the complexity guarantees made by the C++ Standard Library. By analyzing and measuring the performance of alternative solutions to the same problem it shows how this library allows us to write code that is both simple and efficient.
My Most Important C++ Aha! Moments...Ever
http://www.artima.com/cppsource/top_cpp_aha_moments.html
In this article, Scott Meyers shares his picks for the five most meaningful Aha! moments in his involvement with C++, along with why he chose them.