代码搜索:ptr
找到约 10,000 项符合「ptr」的源代码
代码结果 10,000
www.eeworm.com/read/470693/1457721
c auto_ptr.c
template struct auto_ptr_ref {
Y* py;
auto_ptr_ref(Y* p) : py(p) {}
};
template struct auto_ptr {
X* px;
public:
typedef X element_type;
explicit auto_ptr(X* p
www.eeworm.com/read/470693/1467405
cc auto_ptr.cc
// Copyright (C) 2000, 2002 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms
www.eeworm.com/read/242657/4549279
cpp smart_ptr.cpp
// file : Test/ReferenceCounting/SmartPtr/smart_ptr.cpp
// author : Boris Kolpackov
// copyright : Copyright (c) 2002-2003 Boris Kolpackov
// license : http://kolpackov
www.eeworm.com/read/242657/4549283
cpp strict_ptr.cpp
// file : Test/ReferenceCounting/StrictPtr/strict_ptr.cpp
// author : Boris Kolpackov
// copyright : Copyright (c) 2002-2003 Boris Kolpackov
// license : http://kolpack
www.eeworm.com/read/240162/4580290
c ptr1.c
// { dg-do run }
// Bug: catching pointers by reference doesn't work right.
extern "C" int printf (const char *, ...);
struct E {
int x;
E(int i) { x = i; };
};
int main()
{
try {
E *p =
www.eeworm.com/read/240162/4580964
c auto_ptr.c
// { dg-do assemble }
template struct auto_ptr_ref {
Y* py;
auto_ptr_ref(Y* p) : py(p) {}
};
template struct auto_ptr {
X* px;
public:
typedef X element_type;
www.eeworm.com/read/233448/4673107
c ptr1.c
// { dg-do run }
// Bug: catching pointers by reference doesn't work right.
extern "C" int printf (const char *, ...);
struct E {
int x;
E(int i) { x = i; };
};
int main()
{
try {
E *p =
www.eeworm.com/read/233448/4673784
c auto_ptr.c
// { dg-do assemble }
template struct auto_ptr_ref {
Y* py;
auto_ptr_ref(Y* p) : py(p) {}
};
template struct auto_ptr {
X* px;
public:
typedef X element_type;
www.eeworm.com/read/233448/4678693
f90 ptr.f90
program ptr
implicit none
integer, pointer, dimension(:) :: a, b
integer, pointer :: p
integer, target :: i
allocate (a(1:6))
a = (/ 1, 2, 3, 4, 5, 6 /)
b => a
if (any (b .
www.eeworm.com/read/232407/4701259
hpp smart_ptr.hpp
//
// smart_ptr.hpp
//
// For convenience, this header includes the rest of the smart
// pointer library headers.
//
// Copyright (c) 2003 Peter Dimov Distributed under the Boost
// Software Lic