Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CheckedDowncastToActualType (0.36 sec)

  1. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h

    // point to a class of type Derived, not any subclass of it.
    // When RTTI is available, the function performs a runtime
    // check to enforce this.
    template <class Derived, class Base>
    Derived* CheckedDowncastToActualType(Base* base) {
    #if GTEST_HAS_RTTI
      GTEST_CHECK_(typeid(*base) == typeid(Derived));
      return dynamic_cast<Derived*>(base);  // NOLINT
    #else
      return static_cast<Derived*>(base);  // Poor man's downcast.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 67.2K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h

    // point to a class of type Derived, not any subclass of it.
    // When RTTI is available, the function performs a runtime
    // check to enforce this.
    template <class Derived, class Base>
    Derived* CheckedDowncastToActualType(Base* base) {
    #if GTEST_HAS_RTTI
      GTEST_CHECK_(typeid(*base) == typeid(Derived));
      return dynamic_cast<Derived*>(base);  // NOLINT
    #else
      return static_cast<Derived*>(base);  // Poor man's downcast.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 67.2K bytes
    - Viewed (0)
Back to top