Skip to content

Commit bfa765e

Browse files
Rename validate in pbr.*pp
1 parent 82e7357 commit bfa765e

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

include/libsemigroups/pbr.hpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ namespace libsemigroups {
426426
//! This function throws a LibsemigroupsException if the argument \p x does
427427
//! not describe a binary relation on an even number of points.
428428
//!
429-
//! \param x the PBR to validate.
429+
//! \param x the PBR to check.
430430
//!
431431
//! \throws LibsemigroupsException \p x does not describe a binary relation
432432
//! on an even number of points.
@@ -441,7 +441,7 @@ namespace libsemigroups {
441441
//! This function throws a LibsemigroupsException if the argument \p x has a
442442
//! point related to a point that is greater than \ref PBR::degree().
443443
//!
444-
//! \param x the PBR to validate.
444+
//! \param x the PBR to check.
445445
//!
446446
//! \throws LibsemigroupsException if \p x has a point related to a point
447447
//! that is greater than degree().
@@ -456,7 +456,7 @@ namespace libsemigroups {
456456
//! This function throws a LibsemigroupsException if the argument \p x has a
457457
//! list of points related to a point that is not sorted.
458458
//!
459-
//! \param x the PBR to validate.
459+
//! \param x the PBR to check.
460460
//!
461461
//! \throws LibsemigroupsException if \p x has a list of points related to a
462462
//! point that is not sorted.
@@ -470,7 +470,7 @@ namespace libsemigroups {
470470
//! This function throws a LibsemigroupsException if the argument \p x is
471471
//! not a valid PBR.
472472
//!
473-
//! \param x the PBR to validate.
473+
//! \param x the PBR to check.
474474
//!
475475
//! \throws LibsemigroupsException if any of the following occur:
476476
//! * \p x does not describe a binary relation on an even number of points;
@@ -503,17 +503,17 @@ namespace libsemigroups {
503503

504504
//! \relates PBR
505505
//!
506-
//! \brief Construct and validate a \ref PBR.
506+
//! \brief Construct and check a \ref PBR.
507507
//!
508-
//! Construct and validate a \ref PBR.
508+
//! Construct and check a \ref PBR.
509509
//!
510510
//! \tparam Return the return type. Must satisfy `std::is_same<Return, PBR>`.
511511
//! \tparam T the types of the arguments.
512512
//!
513513
//! \param args the arguments to forward to the \ref PBR constructor.
514514
//!
515515
//! \returns
516-
//! A PBR constructed from \p args and validated.
516+
//! A PBR constructed from \p args and checked.
517517
//!
518518
//! \throws LibsemigroupsException if libsemigroups::throw_if_invalid(PBR
519519
//! const&) throws when called with the constructed PBR.
@@ -526,7 +526,7 @@ namespace libsemigroups {
526526
//! #PBR.
527527
template <typename Return, typename... T>
528528
[[nodiscard]] enable_if_is_same<Return, PBR> make(T... args) {
529-
// TODO(later) validate_args
529+
// TODO(later) throw_if_bad_args
530530
PBR result(std::forward<T>(args)...);
531531
pbr::throw_if_invalid(result);
532532
return result;
@@ -545,16 +545,16 @@ namespace libsemigroups {
545545

546546
//! \ingroup make_pbr_group
547547
//!
548-
//! \brief Construct and validate a \ref PBR.
548+
//! \brief Construct and check a \ref PBR.
549549
//!
550-
//! Construct and validate a \ref PBR.
550+
//! Construct and check a \ref PBR.
551551
//!
552552
//! \tparam Return the return type. Must satisfy `std::is_same<Return, PBR>`.
553553
//!
554554
//! \param args the arguments to forward to the constructor.
555555
//!
556556
//! \returns
557-
//! A PBR constructed from \p args and validated.
557+
//! A PBR constructed from \p args and checked.
558558
//!
559559
//! \throws LibsemigroupsException if libsemigroups::throw_if_invalid(PBR
560560
//! const&) throws when called with the constructed PBR.
@@ -583,17 +583,17 @@ namespace libsemigroups {
583583

584584
//! \ingroup make_pbr_group
585585
//!
586-
//! \brief Construct and validate a \ref PBR.
586+
//! \brief Construct and check a \ref PBR.
587587
//!
588-
//! Construct and validate a \ref PBR.
588+
//! Construct and check a \ref PBR.
589589
//!
590590
//! \tparam Return the return type. Must satisfy `std::is_same<Return, PBR>`.
591591
//!
592592
//! \param left the 1st argument to forward to the constructor.
593593
//! \param right the 2nd argument to forward to the constructor.
594594
//!
595595
//! \returns
596-
//! A PBR constructed from \p args and validated.
596+
//! A PBR constructed from \p args and checked.
597597
//!
598598
//! \throws LibsemigroupsException if libsemigroups::throw_if_invalid(PBR
599599
//! const&) throws when called with the constructed PBR.

0 commit comments

Comments
 (0)