Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Solve the Forwarding Problem and Simulate Containers of References

Have you been beaten by the argument forwarding bug? Are you frustrated by the inability to create containers of references in C++98? Find out how the reference wrapper mini-library cures these ailments.




Application Security Testing: An Integral Part of DevOps

R1 recently enhanced the standard header <utility> with a small reference wrapping library that includes the class template reference_wrapper and the helper functions ref() and cref(). This mini-library library solves the onerous problem of argument forwarding. In addition, it enables you to simulate containers of references. The following sections explain how to do that.

How do you pass references as arguments to algorithms? How do you create containers of references?

Use reference_wrapper and its associated helper functions ref() and cref().

Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date