示例#1
0
fcppt::shared_ptr<
Dest
>
const_pointer_cast(
    fcppt::shared_ptr<
    Source const
    > const &_ptr
)
{
    return
        fcppt::shared_ptr<
        Dest
        >(
            _ptr,
            const_cast<
            Dest *
            >(
                _ptr.get_pointer()
            )
        );
}
示例#2
0
fcppt::shared_ptr<
	Dest
> const
static_pointer_cast(
	fcppt::shared_ptr<
		Source
	> const &_ptr
)
{
	return
		fcppt::shared_ptr<
			Dest
		>(
			_ptr,
			fcppt::cast::static_downcast_ptr<
				Dest *
			>(
				_ptr.get_pointer()
			)
		);
}
示例#3
0
fcppt::shared_ptr<
	Dest
>
static_pointer_cast(
	fcppt::shared_ptr<
		Source
	> const &_ptr
)
{
	return
		fcppt::shared_ptr<
			Dest
		>(
			_ptr,
			static_cast<
				Dest *
			>(
				_ptr.get_pointer()
			)
		);
}