Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: base/linked_list.h

Issue 10735044: Remove #pragma once. Just from base/ for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/lazy_instance.h ('k') | base/linux_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_LINKED_LIST_H_ 5 #ifndef BASE_LINKED_LIST_H_
6 #define BASE_LINKED_LIST_H_ 6 #define BASE_LINKED_LIST_H_
7 #pragma once
8 7
9 // Simple LinkedList type. (See the Q&A section to understand how this 8 // Simple LinkedList type. (See the Q&A section to understand how this
10 // differs from std::list). 9 // differs from std::list).
11 // 10 //
12 // To use, start by declaring the class which will be contained in the linked 11 // To use, start by declaring the class which will be contained in the linked
13 // list, as extending LinkNode (this gives it next/previous pointers). 12 // list, as extending LinkNode (this gives it next/previous pointers).
14 // 13 //
15 // class MyNodeType : public LinkNode<MyNodeType> { 14 // class MyNodeType : public LinkNode<MyNodeType> {
16 // ... 15 // ...
17 // }; 16 // };
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 return &root_; 162 return &root_;
164 } 163 }
165 164
166 private: 165 private:
167 LinkNode<T> root_; 166 LinkNode<T> root_;
168 }; 167 };
169 168
170 } // namespace base 169 } // namespace base
171 170
172 #endif // BASE_LINKED_LIST_H_ 171 #endif // BASE_LINKED_LIST_H_
OLDNEW
« no previous file with comments | « base/lazy_instance.h ('k') | base/linux_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698