tesseract v5.3.3.20231005
testing::internal::ConstAndNonConstCastable Class Reference

Public Member Functions

 ConstAndNonConstCastable (bool *converted, bool *const_converted)
 
 operator Base ()
 
 operator Base () const
 

Detailed Description

Definition at line 158 of file googletest-port-test.cc.

Constructor & Destructor Documentation

◆ ConstAndNonConstCastable()

testing::internal::ConstAndNonConstCastable::ConstAndNonConstCastable ( bool *  converted,
bool *  const_converted 
)
inline

Definition at line 160 of file googletest-port-test.cc.

161 : converted_(converted), const_converted_(const_converted) {}

Member Function Documentation

◆ operator Base() [1/2]

testing::internal::ConstAndNonConstCastable::operator Base ( )
inline

Definition at line 162 of file googletest-port-test.cc.

162 {
163 *converted_ = true;
164 return Base();
165 }

◆ operator Base() [2/2]

testing::internal::ConstAndNonConstCastable::operator Base ( ) const
inline

Definition at line 166 of file googletest-port-test.cc.

166 {
167 *const_converted_ = true;
168 return Base();
169 }

The documentation for this class was generated from the following file: