代码搜索:pointers
找到约 4,056 项符合「pointers」的源代码
代码结果 4,056
www.eeworm.com/read/486608/1248858
cpp dog.cpp
/*
dog.cpp -- A program demonstrating function pointers.
*/
#include
#include
#include
const char *Commands[] =
{
"come", "done", "fet
www.eeworm.com/read/480930/1309925
h atarihw.h
/*
** linux/atarihw.h -- This header defines some macros and pointers for
** the various Atari custom hardware registers.
**
** Copyright 1994 by Bj攔n Brauel
**
** 5/1/94 Roman Hode
www.eeworm.com/read/470720/1445527
c pmf6.c
// Test that we only call f once and that pointers to different subobjects
// compare as different.
struct A { void f() { } };
struct B: public A { };
struct C: public A { };
struct D : public B, pub
www.eeworm.com/read/470720/1445611
c ptrmem9.c
// Test that const-correctness is observed when using pointers-to-members.
struct A {
int f () { return 1; }
int f () const { return 0; }
};
struct B {
A a;
B() { }
};
int main ()
{
A B::
www.eeworm.com/read/470720/1448072
c template6.c
// PRMS Id: 4656
// Testcase for use of member pointers in template resolution
template class A {
public:
A() : a(1) {}
T a;
};
template
int foo (T A::*p)
{
return 0;
www.eeworm.com/read/470693/1457473
c pmf6.c
// Test that we only call f once and that pointers to different subobjects
// compare as different.
struct A { void f() { } };
struct B: public A { };
struct C: public A { };
struct D : public B, pub
www.eeworm.com/read/470693/1457557
c ptrmem9.c
// Test that const-correctness is observed when using pointers-to-members.
struct A {
int f () { return 1; }
int f () const { return 0; }
};
struct B {
A a;
B() { }
};
int main ()
{
A B::
www.eeworm.com/read/470693/1460018
c template6.c
// PRMS Id: 4656
// Testcase for use of member pointers in template resolution
template class A {
public:
A() : a(1) {}
T a;
};
template
int foo (T A::*p)
{
return 0;
www.eeworm.com/read/240162/4580716
c pmf6.c
// { dg-do run }
// Test that we only call f once and that pointers to different subobjects
// compare as different.
struct A { void f() { } };
struct B: public A { };
struct C: public A { };
struct
www.eeworm.com/read/240162/4583025
c pmem3.c
// { dg-do run }
// Test that comparison of pointers to members does not complain about
// contravariance violation.
struct A { int i; };
struct B : public A { int j; int f (); };
int main ()
{
in