some simplifications
This commit is contained in:
		
							parent
							
								
									f03c6ce458
								
							
						
					
					
						commit
						2dd94dd943
					
				
					 2 changed files with 8 additions and 16 deletions
				
			
		
							
								
								
									
										12
									
								
								src/json.hpp
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								src/json.hpp
									
										
									
									
									
								
							|  | @ -1498,9 +1498,7 @@ class basic_json | |||
|     */ | ||||
|     inline const_iterator begin() const noexcept | ||||
|     { | ||||
|         const_iterator result(this); | ||||
|         result.set_begin(); | ||||
|         return result; | ||||
|         return cbegin(); | ||||
|     } | ||||
| 
 | ||||
|     /*!
 | ||||
|  | @ -1531,9 +1529,7 @@ class basic_json | |||
|     */ | ||||
|     inline const_iterator end() const noexcept | ||||
|     { | ||||
|         const_iterator result(this); | ||||
|         result.set_end(); | ||||
|         return result; | ||||
|         return cend(); | ||||
|     } | ||||
| 
 | ||||
|     /*!
 | ||||
|  | @ -1562,7 +1558,7 @@ class basic_json | |||
|     */ | ||||
|     inline const_reverse_iterator rbegin() const noexcept | ||||
|     { | ||||
|         return const_reverse_iterator(end()); | ||||
|         return crbegin(); | ||||
|     } | ||||
| 
 | ||||
|     /*!
 | ||||
|  | @ -1580,7 +1576,7 @@ class basic_json | |||
|     */ | ||||
|     inline const_reverse_iterator rend() const noexcept | ||||
|     { | ||||
|         return const_reverse_iterator(begin()); | ||||
|         return crend(); | ||||
|     } | ||||
| 
 | ||||
|     /*!
 | ||||
|  |  | |||
|  | @ -1498,9 +1498,7 @@ class basic_json | |||
|     */ | ||||
|     inline const_iterator begin() const noexcept | ||||
|     { | ||||
|         const_iterator result(this); | ||||
|         result.set_begin(); | ||||
|         return result; | ||||
|         return cbegin(); | ||||
|     } | ||||
| 
 | ||||
|     /*! | ||||
|  | @ -1531,9 +1529,7 @@ class basic_json | |||
|     */ | ||||
|     inline const_iterator end() const noexcept | ||||
|     { | ||||
|         const_iterator result(this); | ||||
|         result.set_end(); | ||||
|         return result; | ||||
|         return cend(); | ||||
|     } | ||||
| 
 | ||||
|     /*! | ||||
|  | @ -1562,7 +1558,7 @@ class basic_json | |||
|     */ | ||||
|     inline const_reverse_iterator rbegin() const noexcept | ||||
|     { | ||||
|         return const_reverse_iterator(end()); | ||||
|         return crbegin(); | ||||
|     } | ||||
| 
 | ||||
|     /*! | ||||
|  | @ -1580,7 +1576,7 @@ class basic_json | |||
|     */ | ||||
|     inline const_reverse_iterator rend() const noexcept | ||||
|     { | ||||
|         return const_reverse_iterator(begin()); | ||||
|         return crend(); | ||||
|     } | ||||
| 
 | ||||
|     /*! | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue