generic-programming
What is Haskell's Data.Typeable?
I\'ve come acro开发者_StackOverflowss references to Haskell\'s Data.Typeable, but it\'s not clear to me why I would want to use it in my code.[详细]
2023-03-18 21:53 分类:问答Recursive generic function used as a predicate, compilation failure
I am writing a function to compare the contents of two lists. The order of the elements don\'t matter, so I sort them before I compare. The lists can be of normal types list<int>, but also be li[详细]
2023-03-16 04:32 分类:问答how to create a container that takes one object of each kind?
I tried to create a container for posible metadata that can be attached to my objects. I can guarantee that there will be at most one object af each kind attached to my class but there is no limit for[详细]
2023-03-14 10:17 分类:问答Work with generic
I have a class look like this: public class NamSetup: INameSetup { static List<Name> nbames= new List<Name>();[详细]
2023-03-13 04:03 分类:问答What kinds of types does qsort not work for in C++?
std::sort swaps elements by using std::swap, which in turn uses the copy constructor and assignment operators, guaranteeing that you get correct semantics when exchanging the values.[详细]
2023-03-09 00:28 分类:问答Generic/template programming best practices: To limit types, or not to limit types
That is my question.I\'m just curious what the consensus is on limiting the types that can be passed in to a generic function or class.I thought I had read at some point, that if you\'re doing generic[详细]
2023-03-06 15:41 分类:问答Working with file streams generically
I want to work with file streams generically. That is, i want to \'program to an interface and not the implementation\'. Something like this:[详细]
2023-03-05 12:16 分类:问答Is there any Algorithm, To find the available bandwidth between two peers on Internet?
I am trying to develop a program which displays the available bandwidth between two peers. Later this module will be integrated in my application which facilitates various user interactions (chatting,[详细]
2023-02-28 17:59 分类:问答How to install generic haskell
after install hugs and then install ghc6 then install generic-haskell has the following message, How to do?[详细]
2023-02-28 06:49 分类:问答C++ vs. D , Ada and Eiffel (horrible error messages with templates)
One of the problems of C++ are horrible error messages that we are gettingfrom code which intensively uses templates and template metaprogramming. The concepts are designed to solve this problem, but[详细]
2023-02-22 05:32 分类:问答