You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// just an alias for std::list<int, memory::std_allocator<int, memory::memory_pool<>>
67
71
// a std::list using a memory_pool
@@ -147,15 +151,13 @@ See `example/` for more.
147
151
## Installation
148
152
149
153
This library can be used as [CMake] subdirectory.
150
-
It is tested on GCC 4.7-4.9, Clang 3.4-3.5 and Visual Studio 2013. Newer versions should work too.
154
+
It is tested on GCC 4.8-5.0, Clang 3.5 and Visual Studio 2013. Newer versions should work too.
151
155
152
156
1. Fetch it, e.g. using [git submodules] `git submodule add https://github.com/foonathan/memory ext/memory` and `git submodule update --init --recursive`.
153
157
154
158
2. Call `add_subdirectory(ext/memory)` or whatever your local path is to make it available in CMake.
155
159
156
-
3. Simply call `target_link_libraries(your_target PUBLIC foonathan_memory)` to link this library and setups the include search path.
157
-
158
-
4. You need to activate C++11 at your target, if not already done, you can use [foonathan/compatibility] already available through `add_subdirectory()` and call `comp_target_features(your_target PUBLIC CPP11)`.
160
+
3. Simply call `target_link_libraries(your_target PUBLIC foonathan_memory)` to link this library and setups the include search path and compilation options.
159
161
160
162
*Note: If during CMake you see an error message that compatibility is
161
163
not on the newest version, run `git submodule update
@@ -170,12 +172,12 @@ You can also install the library:
170
172
171
173
3. Repeat 1 and 2 for each build type/configuration you want to have (like `Debug`, `RelWithDebInfo` and `Release` or custom names).
172
174
173
-
The use an installed library:
175
+
To use an installed library:
174
176
175
177
4. Call `find_package(foonathan_memory major.minor REQUIRED)` to find the library.
176
178
177
-
5. Call `target_link_libraries(your_target PUBLIC foonathan_memory)` and activate C++11 to link to the library.
178
-
179
+
5. Call `target_link_libraries(your_target PUBLIC foonathan_memory)` to link to the library and setup all required options.
180
+
179
181
See http://foonathan.github.io/doc/memory/md_doc_installation.html for a detailed guide.
Copy file name to clipboardExpand all lines: doc/adapters_storage.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ It does not take ownership, i.e. the passed allocator object must live longer th
37
37
* For stateless allocators, it uses a `static` object in order to return a reference in `get_allocator()`.
38
38
But this means that they don't actually depend on the lifetime of the given allocator and also can take temporaries.
39
39
40
-
* For special allocators that already provide reference semantics (determinted through traits specialization), it behaves like a [direct_storage] policy.
40
+
* For special allocators that already provide reference semantics (determined through traits specialization), it behaves like a [direct_storage] policy.
41
41
42
42
In either case, the class is nothrow copyable and never actually moves the referred allocator, just copies the pointer.
43
43
A copy of a [reference_storage] references the same allocator as the origin.
0 commit comments