]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/phoenix/doc/starter_kit/object.qbk
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / phoenix / doc / starter_kit / object.qbk
1 [/==============================================================================
2 Copyright (C) 2001-2010 Joel de Guzman
3 Copyright (C) 2001-2005 Dan Marsden
4 Copyright (C) 2001-2010 Thomas Heller
5
6 Distributed under the Boost Software License, Version 1.0. (See accompanying
7 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 ===============================================================================/]
9
10 [section Construct, New, Delete, Casts]
11
12 You'll probably want to work with objects. There are lazy versions of
13 constructor calls, `new`, `delete` and the suite of C++ casts. Examples:
14
15 construct<std::string>(arg1, arg2) // constructs a std::string from arg1, arg2
16 new_<std::string>(arg1, arg2) // makes a new std::string from arg1, arg2
17 delete_(arg1) // deletes arg1 (assumed to be a pointer)
18 static_cast_<int*>(arg1) // static_cast's arg1 to an int*
19
20 [note Take note that, by convention, names that conflict with C++
21 reserved words are appended with a single trailing underscore `'_'`]
22
23 [blurb __tip__ Learn more about this [link phoenix.modules.object here.]]
24
25 [endsect]
26