代码搜索:implicit

找到约 5,250 项符合「implicit」的源代码

代码结果 5,250
www.eeworm.com/read/305277/3778572

scala bug616.scala

object testImplicit { implicit def foo2bar(foo :Foo) :Bar = foo.bar class Foo(val bar :Bar) { def testCoercion = {val a = this; a.baz} // here, foo2bar is inferred by the compiler, as expected
www.eeworm.com/read/305277/3779330

scala t0716.scala

trait Functor[F[_]] { def fmap[A,B](fun: A=>B, arg:F[A]): F[B] } object Functor{ implicit val ListFunctor = new Functor[List] { def fmap[A, B](f: A => B, arg: List[A]):List[B] = arg map f }
www.eeworm.com/read/440906/1774908

c friend18.c

// { dg-do run } // Copyright (C) 2003 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 26 Mar 2003 // PR 10158. implicit inline template friends ICE'd temp
www.eeworm.com/read/440906/1775457

c instan1.c

// Build don't run: // Origin: Mark Mitchell // Special g++ Options: -fno-implicit-templates template struct U { static int j; }; template struct S {
www.eeworm.com/read/440906/1776241

c typename6.c

// We don't try to make implicit typename handle this case. // Build don't link: // Special g++ Options: template struct A { typedef T A_Type; }; template struct B : public A
www.eeworm.com/read/440906/1778479

f 19990419-0.f

* Test case Toon submitted, cut down to expose the one bug. * Belongs in compile/. SUBROUTINE INIERS1 IMPLICIT LOGICAL(L) COMMON/COMIOD/ NHIERS1, LERS1 inquire(nhiers1, exist
www.eeworm.com/read/437028/1836920

f mxv_dgemv.f

subroutine mxv(a,ncol,b,nrow,c) implicit double precision (a-h, o-z) double precision a(ncol, nrow), b(nrow), c(ncol) parameter (ilen=500, jlen=60) c call dgemv('n', ncol
www.eeworm.com/read/393688/2472172

f cprtps.f

program cprnc ! ! $Id: cprtps.F,v 1.1.6.3 2002/04/24 03:24:53 erik Exp $ ! use header use nldat implicit none include 'netcdf.inc' ! ! Local workspace ! character*128 cvsid charact
www.eeworm.com/read/393688/2472680

f cprtps.f

program cprnc ! ! $Id: cprtps.F,v 1.3.6.1.2.2 2002/05/17 17:04:44 erik Exp $ ! use header use nldat implicit none include 'netcdf.inc' ! ! Local workspace ! character*128 cvsid cha
www.eeworm.com/read/393688/2472840

f90 restart_dynamics.f90

#include #include module restart_dynamics use precision use pmgrid use prognostics use ppgrid, only: pcols, pver use comslt use binary_io implicit none CON