Skip to content

Commit c4dace5

Browse files
committed
Use the same parameter name for the two overloads of at()
Reason: Consistency. This incidentally also fixes the documentation of the non-const overload.
1 parent d8c1fff commit c4dace5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/boost/dynamic_bitset/dynamic_bitset.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ class dynamic_bitset
789789
//! \param pos The position of the bit to test.
790790
//!
791791
//! \return
792-
//! The same as `operator[]( n )`.
792+
//! The same as `operator[]( pos )`.
793793
//!
794794
//! \par Throws
795795
//! `std::out_of_range` if `pos` is not within the range of the
@@ -799,16 +799,16 @@ class dynamic_bitset
799799

800800
//! A checked version of `operator[]()`.
801801
//!
802-
//! \param n The position of the bit to test.
802+
//! \param pos The position of the bit to test.
803803
//!
804804
//! \return
805-
//! The same as `operator[]( n )`.
805+
//! The same as `operator[]( pos )`.
806806
//!
807807
//! \par Throws
808808
//! `std::out_of_range` if `pos` is not within the range of the
809809
//! bitset.
810810
// -----------------------------------------------------------------------
811-
bool at( size_type n ) const;
811+
bool at( size_type pos ) const;
812812

813813
//! Tests the bit at the given position.
814814
//!

0 commit comments

Comments
 (0)