Boost logo

Boost-Commit :

From: Lawrence_at_[hidden]
Date: 2007-10-24 19:58:55


Author: crowl
Date: 2007-10-24 19:58:54 EDT (Wed, 24 Oct 2007)
New Revision: 40446
URL: http://svn.boost.org/trac/boost/changeset/40446

Log:
Normalize namespace and class indentation to zero and four, respectively.

Text files modified:
   sandbox/committee/LWG/thread_library.html | 331 ++++++++++++++++++++-------------------
   1 files changed, 166 insertions(+), 165 deletions(-)

Modified: sandbox/committee/LWG/thread_library.html
==============================================================================
--- sandbox/committee/LWG/thread_library.html (original)
+++ sandbox/committee/LWG/thread_library.html 2007-10-24 19:58:54 EDT (Wed, 24 Oct 2007)
@@ -127,12 +127,12 @@
 </p>
 
 <pre><code>
- namespace std {
- ...
- <i>// Hash function specializations</i>
- ...
- <ins>struct hash&lt;std::thread::id&gt;; //should not be in this header file ?</ins>
- }
+namespace std {
+ ...
+ <i>// Hash function specializations</i>
+ ...
+ <ins>struct hash&lt;std::thread::id&gt;; //should not be in this header file ?</ins>
+}
 </code></pre>
 </blockquote>
 
@@ -320,25 +320,27 @@
 
 <h6>Class <code>thread::id</code></h6>
 
+<blockquote>
 <pre><code>
- class thread::id
- {
- public:
- id();
- };
-
- bool operator==(const thread::id&amp; <i>x</i>, const thread::id&amp; <i>y</i>);
- bool operator!=(const thread::id&amp; <i>x</i>, const thread::id&amp; <i>y</i>);
- bool operator&lt;(const thread::id&amp; <i>x</i>, const thread::id&amp; <i>y</i>);
- bool operator&lt;=(const thread::id&amp; <i>x</i>, const thread::id&amp; <i>y</i>);
- bool operator&gt;(const thread::id&amp; <i>x</i>, const thread::id&amp; <i>y</i>);
- bool operator&gt;=(const thread::id&amp; <i>x</i>, const thread::id&amp; <i>y</i>);
-
- template&lt;class charT, class traits&gt;
- basic_ostream&lt;charT, traits&gt;&amp;
- operator&lt;&lt; (basic_ostream&lt;charT, traits&gt;&amp;&amp; out, const thread::id&amp; id);
+class thread::id
+{
+public:
+ id();
+};
+
+bool operator==(const thread::id&amp; <i>x</i>, const thread::id&amp; <i>y</i>);
+bool operator!=(const thread::id&amp; <i>x</i>, const thread::id&amp; <i>y</i>);
+bool operator&lt;(const thread::id&amp; <i>x</i>, const thread::id&amp; <i>y</i>);
+bool operator&lt;=(const thread::id&amp; <i>x</i>, const thread::id&amp; <i>y</i>);
+bool operator&gt;(const thread::id&amp; <i>x</i>, const thread::id&amp; <i>y</i>);
+bool operator&gt;=(const thread::id&amp; <i>x</i>, const thread::id&amp; <i>y</i>);
+
+template&lt;class charT, class traits&gt;
+basic_ostream&lt;charT, traits&gt;&amp;
+operator&lt;&lt; (basic_ostream&lt;charT, traits&gt;&amp;&amp; out, const thread::id&amp; id);
 
 </code></pre>
+</blockquote>
 
 <p>
 Objects of type <code>thread::id</code> represent the identity of threads. Each
@@ -800,13 +802,13 @@
 
 <blockquote>
 <pre><code>
-namespace this_thread
-{
- thread::id get_id();
+namespace this_thread {
+
+thread::id get_id();
     
- void yield();
- template &lt;class Duration&gt;
- void sleep(const Duration&amp; rel_t);
+void yield();
+template &lt;class Duration&gt;
+ void sleep(const Duration&amp; rel_t);
 
 } // this_thread
 </code></pre>
@@ -2616,22 +2618,21 @@
 
 <blockquote>
 <pre><code>
-namespace std
-{
+namespace std {
 
- //duration types
- class hours;
- class minutes;
- class seconds;
- class milliseconds;
- class microseconds;
- class nanoseconds;
+//duration types
+class hours;
+class minutes;
+class seconds;
+class milliseconds;
+class microseconds;
+class nanoseconds;
 
- //timepoint
- class system_time;
+//timepoint
+class system_time;
 
- //functions
- system_time get_system_time();
+//functions
+system_time get_system_time();
 
 } //std
 </code></pre>
@@ -2655,43 +2656,43 @@
 <pre><code>
 class system_time
 {
- public:
+public:
 
- system_time();
- system_time(time_t, nanoseconds ns);
- ~system_time();
-
- time_t seconds_since_epoch() const;
- nanoseconds nanoseconds_since_epoch() const;
-
- //traits
- typedef 'implementation defined' tick_type;
- static tick_type ticks_per_second();
- static tick_type seconds_per_tick();
- static bool is_subsecond();
-
- //comparison functions
- bool operator==(const system_time&amp; rhs) const;
- bool operator!=(const system_time&amp; rhs) const;
- bool operator&gt;(const system_time&amp; rhs) const;
- bool operator&gt;=(const system_time&amp; rhs) const;
- bool operator&lt;(const system_time&amp; rhs) const;
- bool operator&lt;=(const system_time&amp; rhs) const;
-
- //arithmetic functions
- nanoseconds operator-(const system_time&amp; rhs) const
-
- template&lt;typename Duration&gt;
- system_time operator+(const Duration&amp; td) const;
+ system_time();
+ system_time(time_t, nanoseconds ns);
+ ~system_time();
+
+ time_t seconds_since_epoch() const;
+ nanoseconds nanoseconds_since_epoch() const;
+
+ //traits
+ typedef 'implementation defined' tick_type;
+ static tick_type ticks_per_second();
+ static tick_type seconds_per_tick();
+ static bool is_subsecond();
+
+ //comparison functions
+ bool operator==(const system_time&amp; rhs) const;
+ bool operator!=(const system_time&amp; rhs) const;
+ bool operator&gt;(const system_time&amp; rhs) const;
+ bool operator&gt;=(const system_time&amp; rhs) const;
+ bool operator&lt;(const system_time&amp; rhs) const;
+ bool operator&lt;=(const system_time&amp; rhs) const;
+
+ //arithmetic functions
+ nanoseconds operator-(const system_time&amp; rhs) const
+
+ template&lt;typename Duration&gt;
+ system_time operator+(const Duration&amp; td) const;
 
- template&lt;typename Duration&gt;
- system_time&amp; operator+=(const Duration&amp; td);
+ template&lt;typename Duration&gt;
+ system_time&amp; operator+=(const Duration&amp; td);
 
- template&lt;typename Duration&gt;
- system_time operator-(const Duration&amp; td) const;
+ template&lt;typename Duration&gt;
+ system_time operator-(const Duration&amp; td) const;
 
- template&lt;typename Duration&gt;
- system_time&amp; operator-=(const Duration&amp; td)
+ template&lt;typename Duration&gt;
+ system_time&amp; operator-=(const Duration&amp; td)
 
 };
 </code></pre>
@@ -3464,19 +3465,19 @@
 <pre><code>
 class nanoseconds
 {
- public:
+public:
 
- nanoseconds(long long=0);
- nanoseconds(const nanoseconds& rhs);
- ~nanoseconds();
-
- //traits information
- static tick_type ticks_per_second();
- static tick_type seconds_per_tick();
- static bool is_subsecond();
- typedef <b><i>implementation-defined</i></b> tick_type;
+ nanoseconds(long long=0);
+ nanoseconds(const nanoseconds& rhs);
+ ~nanoseconds();
+
+ //traits information
+ static tick_type ticks_per_second();
+ static tick_type seconds_per_tick();
+ static bool is_subsecond();
+ typedef <b><i>implementation-defined</i></b> tick_type;
 
- //+ common functions
+ //+ common functions
 
 };
 </code></pre>
@@ -3573,22 +3574,22 @@
 <pre><code>
 class microseconds
 {
- public:
+public:
 
- microseconds(long long=0);
- microseconds(const microseconds&amp; rhs);
- ~microseconds();
-
- //conversions
- operator nanoseconds() const
-
- //traits information
- static tick_type ticks_per_second();
- static tick_type seconds_per_tick();
- static bool is_subsecond();
- typedef <b><i>implementation-defined</i></b> tick_type;
+ microseconds(long long=0);
+ microseconds(const microseconds&amp; rhs);
+ ~microseconds();
+
+ //conversions
+ operator nanoseconds() const
+
+ //traits information
+ static tick_type ticks_per_second();
+ static tick_type seconds_per_tick();
+ static bool is_subsecond();
+ typedef <b><i>implementation-defined</i></b> tick_type;
 
- //+ common functions
+ //+ common functions
 
 };
 
@@ -3703,22 +3704,22 @@
 <pre><code>
 class milliseconds
 {
- public:
- milliseconds(long long=0);
- milliseconds(const milliseconds&amp; rhs);
- ~milliseconds();
-
- //conversions
- operator nanoseconds() const;
- operator microseconds() const;
-
- //traits information
- static tick_type ticks_per_second();
- static tick_type seconds_per_tick();
- static bool is_subsecond();
- typedef <b><i>implementation-defined</i></b> tick_type;
+public:
+ milliseconds(long long=0);
+ milliseconds(const milliseconds&amp; rhs);
+ ~milliseconds();
+
+ //conversions
+ operator nanoseconds() const;
+ operator microseconds() const;
+
+ //traits information
+ static tick_type ticks_per_second();
+ static tick_type seconds_per_tick();
+ static bool is_subsecond();
+ typedef <b><i>implementation-defined</i></b> tick_type;
 
- //+ common functions
+ //+ common functions
 };
 </code></pre>
 </blockquote>
@@ -3846,23 +3847,23 @@
 <pre><code>
 class seconds
 {
- public:
- seconds(long long s=0);
- seconds(const seconds&amp; rhs);
- ~seconds();
-
- //conversions
- operator nanoseconds() const
- operator microseconds() const
- operator milliseconds() const
-
- //traits information
- static tick_type ticks_per_second();
- static tick_type seconds_per_tick();
- static bool is_subsecond();
- typedef <b><i>implementation-defined</i></b> tick_type;
+public:
+ seconds(long long s=0);
+ seconds(const seconds&amp; rhs);
+ ~seconds();
+
+ //conversions
+ operator nanoseconds() const
+ operator microseconds() const
+ operator milliseconds() const
+
+ //traits information
+ static tick_type ticks_per_second();
+ static tick_type seconds_per_tick();
+ static bool is_subsecond();
+ typedef <b><i>implementation-defined</i></b> tick_type;
 
- //+ common functions
+ //+ common functions
 
 };
 </code></pre>
@@ -4007,24 +4008,24 @@
 <pre><code>
 class minutes
 {
- public:
- minutes(long long s=0);
- minutes(const minutes&amp; rhs);
- ~minutes();
-
- //conversions
- operator nanoseconds() const
- operator microseconds() const
- operator milliseconds() const
- operator seconds() const
-
- //traits information
- static tick_type ticks_per_second();
- static tick_type seconds_per_tick();
- static bool is_subsecond();
- typedef <b><i>implementation-defined</i></b> tick_type;
+public:
+ minutes(long long s=0);
+ minutes(const minutes&amp; rhs);
+ ~minutes();
+
+ //conversions
+ operator nanoseconds() const
+ operator microseconds() const
+ operator milliseconds() const
+ operator seconds() const
+
+ //traits information
+ static tick_type ticks_per_second();
+ static tick_type seconds_per_tick();
+ static bool is_subsecond();
+ typedef <b><i>implementation-defined</i></b> tick_type;
 
- //+ common functions
+ //+ common functions
 
 };
 </code></pre>
@@ -4185,25 +4186,25 @@
 <pre><code>
 class hours
 {
- public:
- hours(long long s=0);
- hours(const hours&amp; rhs);
- ~hours();
-
- //conversions
- operator nanoseconds() const
- operator microseconds() const
- operator milliseconds() const
- operator seconds() const
- operator minutes() const
-
- //traits information
- static tick_type ticks_per_second();
- static tick_type seconds_per_tick();
- static bool is_subsecond();
- typedef <b><i>implementation-defined</i></b> tick_type;
+public:
+ hours(long long s=0);
+ hours(const hours&amp; rhs);
+ ~hours();
+
+ //conversions
+ operator nanoseconds() const
+ operator microseconds() const
+ operator milliseconds() const
+ operator seconds() const
+ operator minutes() const
+
+ //traits information
+ static tick_type ticks_per_second();
+ static tick_type seconds_per_tick();
+ static bool is_subsecond();
+ typedef <b><i>implementation-defined</i></b> tick_type;
 
- //+ common functions
+ //+ common functions
 
 };
 </code></pre>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk