comparison liboctave/oct-refcount.h @ 12254:23385f2c90b7 release-3-4-x

whitespace fixes
author John W. Eaton <jwe@octave.org>
date Wed, 26 Jan 2011 23:49:42 -0500
parents a21a3875ca83
children 43cc49c7abd1
comparison
equal deleted inserted replaced
12253:1f14586af94c 12254:23385f2c90b7
31 typedef T count_type; 31 typedef T count_type;
32 32
33 octave_refcount(count_type initial_count) : count(initial_count) {} 33 octave_refcount(count_type initial_count) : count(initial_count) {}
34 34
35 // Increment/Decrement. int is postfix. 35 // Increment/Decrement. int is postfix.
36 count_type operator++(void) 36 count_type operator++(void)
37 { 37 {
38 return ++count; 38 return ++count;
39 } 39 }
40 40
41 count_type operator++(int) 41 count_type operator++(int)
42 { 42 {
43 return count++; 43 return count++;
44 } 44 }
45 45
46 count_type operator--(void) 46 count_type operator--(void)
47 { 47 {
48 return --count; 48 return --count;
49 } 49 }
50 50
51 count_type operator--(int) 51 count_type operator--(int)
52 { 52 {
53 return count--; 53 return count--;
54 } 54 }
55 55
56 operator count_type (void) const { return count; } 56 operator count_type (void) const { return count; }
57 57
58 // For low-level optimizations only. 58 // For low-level optimizations only.