util/StaticFifoBuffer: add constexpr
				
					
				
			This commit is contained in:
		| @@ -78,11 +78,11 @@ public: | |||||||
| 		head = tail = 0; | 		head = tail = 0; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	bool empty() const noexcept { | 	constexpr bool empty() const noexcept { | ||||||
| 		return head == tail; | 		return head == tail; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	bool IsFull() const noexcept { | 	constexpr bool IsFull() const noexcept { | ||||||
| 		return head == 0 && tail == size; | 		return head == 0 && tail == size; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| @@ -115,7 +115,7 @@ public: | |||||||
| 	 * Return a buffer range which may be read.  The buffer pointer is | 	 * Return a buffer range which may be read.  The buffer pointer is | ||||||
| 	 * writable, to allow modifications while parsing. | 	 * writable, to allow modifications while parsing. | ||||||
| 	 */ | 	 */ | ||||||
| 	Range Read() noexcept { | 	constexpr Range Read() noexcept { | ||||||
| 		return Range(data + head, tail - head); | 		return Range(data + head, tail - head); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann